From 3e93a89b0cd7b64da46b3abdf9f3e2983a373961 Mon Sep 17 00:00:00 2001 From: "jim_nance%yahoo.com" Date: Sat, 26 Feb 2000 02:34:15 +0000 Subject: [PATCH] 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. --- build/autoconf/print-failed-commands.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 build/autoconf/print-failed-commands.sh diff --git a/build/autoconf/print-failed-commands.sh b/build/autoconf/print-failed-commands.sh new file mode 100644 index 000000000000..c274c0e054b1 --- /dev/null +++ b/build/autoconf/print-failed-commands.sh @@ -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 "The following command failed to execute properly:" + echo "$@" + exit 1; +} +