0104-env.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
       ---
       0104-env.sh (245B)
       ---
            1 #!/bin/sh
            2 
            3 export CFLAGS=World
            4 
            5 trap 'rm -f $tmp1 $tmp2' EXIT INT TERM HUP
            6 
            7 tmp1=tmp1.$$
            8 tmp2=tmp2.$$
            9 
           10 cat > $tmp1 <<EOF
           11 Hello World
           12 EOF
           13 
           14 scc make -f - <<'EOF' > $tmp2 2>&1
           15 FLAGS=Hello $(CFLAGS)
           16 all:
           17         @echo Hello $(CFLAGS)
           18 EOF
           19 
           20 diff $tmp1 $tmp2