0093-inference.sh - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
       0093-inference.sh (280B)
       ---
            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 tmp3=tmp3.$$
            8 
            9 cat >$tmp1<<EOF
           10 c99 -O -c f.c
           11 EOF
           12 
           13 cat >$tmp2 <<'EOF'
           14 f.o: f.h
           15 
           16 all: f.o
           17 EOF
           18 
           19 (touch f.c f.h
           20 scc make -f $tmp2
           21 touch f.c
           22 scc make -f $tmp2) > $tmp3
           23 
           24 diff $tmp1 $tmp3