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: Daniel Jacobowitz <drow at mvista dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 7 Jan 2003 12:33:32 -0500
- Subject: Re: gdb_mbuild -do-not-clean-up option
- References: <3E1AF06A.1000500@redhat.com>
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