0083-rule.sh (230B)
1 #!/bin/sh 2 3 trap 'rm -f $tmp1 $tmp2 f.c f.o' EXIT INT TERM QUIT HUP 4 5 tmp1=tmp1.$$ 6 tmp2=tmp2.$$ 7 8 echo dude > f.c 9 echo hello > $tmp2 10 11 (scc make -f- <<'EOF' 12 f.o: 13 @echo hello > $@ 14 15 all: f.o 16 EOF 17 cat f.o) > $tmp1 2>&1 18 19 diff $tmp1 $tmp2