Files
Mozilla/mozilla/build/autoconf/print-failed-commands.sh
jim_nance%yahoo.com b5172e6787 Initial Checking. Not part of the default build (yet).
Shell script for use with Makefiles.  Prints out failing
commands to make "make -s" more useful.


git-svn-id: svn://10.0.0.236/trunk@61726 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-26 02:34:15 +00:00

22 lines
598 B
Bash

#!/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 "The following command failed to execute properly:"
echo "$@"
exit 1;
}