0106-inference.sh (317B)
1 #!/bin/sh 2 3 trap 'rm -f f.? $tmp1 $tmp2 $tmp3 f.?' EXIT INT TERM QUIT HUP 4 5 tmp1=tmp1.$$ 6 tmp2=tmp2.$$ 7 8 cat >$tmp1<<EOF 9 c99 -O -c f.c 10 EOF 11 12 touch -d '1970-01-01 00:00:01' f.c 13 touch -d '1970-01-01 00:00:02' f.o 14 touch -d '1970-01-01 00:00:03' f.h 15 scc make -f - <<'EOF' > $tmp2 2>&1 16 f.o: f.h 17 18 all: f.o 19 EOF 20 21 diff $tmp1 $tmp2