Bug 470165 - Cleanup the GTK nsFilePicker code; r+sr=roc
[wine-gecko.git] / build / unix / print-failed-commands.sh
blobac90eb8b74110f8f9a2b4c1987d43ce8f52a6c45
1 #!/bin/sh
3 # Usage from makefile:
4 # ELOG = . $(topdir)/build/autoconf/print-failed-commands.sh
5 # $(ELOG) $(CC) $CFLAGS -o $@ $<
7 # This shell script is used by the build system to print out commands that fail
8 # to execute properly. It is designed to make the "make -s" command more
9 # useful.
11 # Note that in the example we are sourcing rather than execing the script.
12 # Since make already started a shell for us, we might as well use it rather
13 # than starting a new one.
15 ( exec "$@" ) || {
16 echo
17 echo "In the directory " `pwd`
18 echo "The following command failed to execute properly:"
19 echo "$@"
20 exit 1;