if test x${shell_command+"set"} != x"set"; then
if test $# -gt 0; then
- shell_command=$(cat "$1")
+ shell_script=$1
+ shell_command=$(cat <"$shell_script")
else
- # Some make implementations, like *BSD's, pass the recipes to the
- # shell through its standard input. Trying to run our extra checks
- # in this case would be too tricky, so we just skip them.
- exit 0
+ echo "$0: fatal: no shell script given," \
+ "nor a command given via the '-c' option" >&2
+ exit 1
fi
fi
+ original_shell_command=$shell_command
tab=' '
nl='