0048-include.sh (263B)
1 #!/bin/sh 2 3 trap 'rm -f $tmp1 $tmp2 $tmp3' EXIT INT QUIT TERM HUP 4 5 tmp1=tmp1.$$ 6 tmp2=tmp2.$$ 7 tmp3=tmp3.$$ 8 9 touch $tmp3 10 11 echo Hello World! > $tmp2 12 13 scc make -f- hello <<EOF > $tmp1 2>&1 14 FILE = test.mk 15 F = $tmp3 16 17 include \$(FILE) 18 include \$(F) 19 EOF 20 21 diff $tmp1 $tmp2