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
Daniel Jacobowitz <drow@mvista.com> writes:
|> On Tue, Jan 07, 2003 at 10:21:14AM -0500, Andrew Cagney wrote:
|> > 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 $?
Or use the PIPESTATUS feature of Bash.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."