gdb_mbuild -do-not-clean-up option
Daniel Jacobowitz
drow@mvista.com
Tue Jan 7 17:33:00 GMT 2003
On Tue, Jan 07, 2003 at 10:21:14AM -0500, Andrew Cagney wrote:
> Hello,
>
> 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.
>
> To this end, I'd like to propose a new option (-n?) that indicates that
> the directory should not be removed at the end of the build and instead
> the target should just be [re-]made.
>
> Thoughts, especially on the option letter? I don't like -n that much.
> -k is already taken for `make -k'.
>
> Thoughts?
Don't fight for short option names. How about "--keep"?
> --
>
> While at it, given the SH:
>
> make | tee logfile
>
> does anyone know of a way to determine the exit status of the `make'
> instead of the `tee'?
When I need to do this, I do something like:
rm -f gdb/gdb || true
make 2>&1 | tee logfile
test -f gdb/gdb
echo $?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Gdb
mailing list