https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 1b7415a0cb56b95a0ef46e230a75585a78c78831 authored by seabld on 24 July 2011, 07:56:39 UTC
Added tag SEAMONKEY_2_3b1_RELEASE for changeset FIREFOX_6_0b3_BUILD2. CLOSED TREE a=release
Tip revision: 1b7415a
print-failed-commands.sh
#!/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;
}
back to top