1 |
On Sat, Jun 30, 2001 at 08:16:44AM -0600, Parag Mehta wrote: |
2 |
> Hi, |
3 |
> |
4 |
> can we call emerge in shell script ?/ |
5 |
> |
6 |
> for ex.: |
7 |
> |
8 |
> #Script Start |
9 |
> #!/bin/sh |
10 |
> |
11 |
> emerge /usr/portage/net-ww/htdig/htdig-xxx.ebuild |
12 |
> emerge /usr/portage/net-ww/apache/apache-xxx.ebuild |
13 |
> and so on. |
14 |
> |
15 |
> |
16 |
> #script ends |
17 |
> what are the probable pros & cons ?? |
18 |
|
19 |
Yes, this'll work. Cons = if you don't test for a non-zero return code from |
20 |
emerge ("if [ $? -ne 0 ]" then it will continue even if the previous emerge |
21 |
failed. |
22 |
|
23 |
-- |
24 |
Daniel Robbins <drobbins@g.o> |
25 |
President/CEO http://www.gentoo.org |
26 |
Gentoo Technologies, Inc. |