0092-expansion.sh (294B)
1 #!/bin/sh 2 3 trap 'rm -f $tmp1 $tmp2' EXIT INT TERM QUIT HUP 4 5 tmp1=tmp1.$$ 6 tmp2=tmp2.$$ 7 8 cat >$tmp2 <<EOF 9 yeah! 10 done 11 EOF 12 13 scc make -f- <<'EOF' > $tmp1 2>&1 14 VAR =\ 15 all\ 16 f1\ 17 f2\ 18 19 OBJS = f.$O 20 21 O = e 22 23 $(VAR) all : $(OBJS) 24 @echo done 25 26 f.$O: 27 @echo yeah! 28 EOF 29 30 diff $tmp1 $tmp2