46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
#
|
|
# Test file to make sure the .SHELL specification works
|
|
#
|
|
.MAIN : sh
|
|
#ifmake csh
|
|
.SHELL: path=/bin/csh echoFlag=v echo="set verbose" quiet="unset verbose" \
|
|
filter="unset verbose" errFlag=e hasErrCtl=No check="echo \"%s\"\n" \
|
|
ignore="csh -c \"%s || exit 0\"\n"
|
|
next=cat
|
|
#elifmake sh
|
|
.SHELL: path=/bin/sh echoFlag=v echo="set -v" quiet="set -" \
|
|
filter="set -" errFlag=e hasErrCtl=No check="echo \"%s\"\n" \
|
|
ignore="sh -c \"%s || exit 0\"\n"
|
|
next=csh
|
|
#elifmake cat
|
|
#ifdef SYSV
|
|
.SHELL: path=/bin/cat echoFlag=e echo="echo on" quiet="echo off" \
|
|
filter="true" errFlag=e hasErrCtl=Yes check="error check on" \
|
|
ignore="error check off"
|
|
#else
|
|
.SHELL: path=/bin/cat echoFlag=n echo="echo on" quiet="echo off" \
|
|
filter="true" errFlag=e hasErrCtl=Yes check="error check on" \
|
|
ignore="error check off"
|
|
#endif
|
|
#endif
|
|
|
|
#ifmake sh
|
|
.BEGIN:
|
|
: for sh and csh, the output should look like
|
|
: whuffle
|
|
: false
|
|
: true
|
|
: testing _____ next
|
|
|
|
#endif sh
|
|
|
|
sh cat csh :
|
|
@echo whuffle
|
|
-false
|
|
true
|
|
#ifdef next
|
|
@echo testing $(next) next
|
|
-@$(MAKE) -lf shell.test $(next)
|
|
#endif next
|
|
|