[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    Re: [gentoo-dev] emerge in shell script ?
From:       Daniel Robbins <drobbins () gentoo ! org>
Date:       2001-06-30 10:54:01
[Download RAW message or body]

On Sat, Jun 30, 2001 at 08:16:44AM -0600, Parag Mehta wrote:
> Hi,
> 
> can we call emerge in shell script ?/
> 
> for ex.:
> 
> #Script Start
> #!/bin/sh
> 
> emerge /usr/portage/net-ww/htdig/htdig-xxx.ebuild
> emerge /usr/portage/net-ww/apache/apache-xxx.ebuild
> and so on.
> 
> 
> #script ends
>  what are the probable pros & cons ??

Yes, this'll work.  Cons = if you don't test for a non-zero return code from
emerge ("if [ $? -ne 0 ]" then it will continue even if the previous emerge
failed.

-- 
Daniel Robbins					<drobbins@gentoo.org>
President/CEO					http://www.gentoo.org 
Gentoo Technologies, Inc.			


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic