Bug 620907 js/src/build/unix is missing print-failed-commands.sh

r=khuey a=bsmedberg

--HG--
rename : build/unix/print-failed-commands.sh => js/src/build/unix/print-failed-commands.sh
This commit is contained in:
timeless@mozdev.org 2011-01-05 14:17:10 -08:00
Родитель f7f59c29a2
Коммит 6759118363
1 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,21 @@
#!/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;
}