This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb_mbuild -do-not-clean-up option
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 07 Jan 2003 11:13:10 -0500
- Subject: Re: gdb_mbuild -do-not-clean-up option
- References: <200301071558.h07FwGa25254@duracef.shout.net>
Andrew Cagney writes:
In using gdb_mbuild.sh on a machine with lots of disk space (> 2gb free)
I've found things work even better if none of the build directories are
removed. Instead relying on gdb/Makefile's dependencies to do a correct
re-build after a change.
My choice would be to make that the default. Either let people run 'rm -r'
themselves if they want, or have a flag:
-p prune the build directories
-s strip the build directories
If you want to an option to keep the directories: '-n' is already
meaningful for make-type activities.
Yes, that's why I don't like :-)
-a keep _a_ll the build directories
Definitly better.
make | tee logfile
I have never found a way to get the exit status of the first command.
In my scripts, I just do:
set -e # exit on error
set -x # echo all commands
make > logfile 2>&1
A work around is:
(make || rm -f gdb) | tee logfile
Andrew