[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Simple bash question



Hi All-

On a regular basis, I download code from CVS and then do the same
steps to build.  I have a directory that contains a number of other
directories.  I go into several of these directories (always the same
ones) and do a:

./autogen.sh
make
**SWITCH TO ROOT AND THEN**
make install

I see the benefits in scripting this exercise.  The flow is something like:

cd directory
$ ./autogen.sh
$ make
$ su -
Password: XXX
# make install
#exit
$ cd ../next_directory
$ ./autogen.sh
$ make
$ su -
Password: XXX
# make install
#exit
$cd ../third_directory

...ETC...

Just curious how this might be accomplished with a bash script.  If
there was an error kicked back at any step, it would be nice to say as
such.

Thanks for any help.