0053-rule.sh (285B)
1 #!/bin/sh 2 3 trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP 4 5 tmp1=tmp1.$$ 6 tmp2=tmp2.$$ 7 8 cat > $tmp2 <<EOF 9 Hello World! 10 bye 11 fail 12 EOF 13 14 (set -e 15 scc-make -f- <<'EOF' 16 .POSIX: 17 18 .IGNORE: all 19 20 all: 21 @echo Hello World!;\ 22 false;\ 23 echo bye 24 EOF 25 echo fail) > $tmp1 2> /dev/null 26 27 diff $tmp1 $tmp2