build/unix/print-failed-commands.sh
author L. David Baron <dbaron@dbaron.org>
Fri, 24 Apr 2009 15:45:34 -0700
changeset 27824 30936df0271e7f7701e08716dea1a858963fda29
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rwxr-xr-x
Convert children of EditAggregateTxn from nsISupportsArray to nsTArray< nsRefPtr<EditTxn> >. (Bug 488799) r+sr=peterv

#!/bin/sh
#
# Usage from makefile:
#   ELOG = . $(topdir)/build/autoconf/print-failed-commands.sh
#   $(ELOG) $(CC) $CFLAGS -o $@ $<
#
# This shell script is used by the build system to print out commands that fail
# to execute properly.  It is designed to make the "make -s" command more
# useful.
#
# Note that in the example we are sourcing rather than execing the script.
# Since make already started a shell for us, we might as well use it rather
# than starting a new one.

( exec "$@" ) || {
    echo
    echo "In the directory " `pwd`
    echo "The following command failed to execute properly:"
    echo "$@"
    exit 1;
}