12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- set -u
- am_SHELL=${AM_TESTSUITE_SHELL-'@SHELL@'}
- (
- set -e
- shell_command=; unset shell_command
- shell_script=; unset shell_script
- while test $# -gt 0; do
- case $1 in
-
-
-
- -*c*) shell_command=$2; shift;;
- -?*) ;;
- *) break;;
- esac
- shift
- done
- if test x${shell_command+"set"} != x"set"; then
- if test $# -gt 0; then
- shell_script=$1
- shell_command=$(cat <"$shell_script")
- else
-
-
-
- exit 0
- fi
- fi
- original_shell_command=$shell_command
- tab=' '
- nl='
- '
- case "$shell_command" in
- *" "|*"$tab"|*"$nl")
- shell_command=$(printf '%s\n' "$shell_command" | tr -d " $tab$nl");;
- esac
- case "$shell_command" in
- *\\)
- {
- printf '%s\n' "$0: recipe/script ends with backslash character"
- printf '%s\n' "=== BEGIN recipe/script"
- if test x${shell_script+"set"} = x"set"; then
- cat <"$shell_script"
- else
- printf '%s\n' "$original_shell_command"
- fi
- printf '%s\n' "=== END recipe/script"
- } >&2
- exit 1
- ;;
- esac
- )
- if test $? -gt 0; then
-
- exit 3
- fi
- exec ${AM_TESTSUITE_SHELL-'@SHELL@'} ${1+"$@"}
|