scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

0022-Sflag.sh (318B)


      1 #!/bin/sh
      2 
      3 trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP
      4 
      5 tmp1=tmp1.$$
      6 tmp2=tmp2.$$
      7 
      8 cat > $tmp2 <<EOF
      9 -k -S
     10 no-valid-program
     11 sh: no-valid-program: not found
     12 make: error: target error: error 32512
     13 EOF
     14 
     15 MAKEFLAGS=-k scc-make -Sf test.mk print-makeflags follow 2>&1 |
     16 sed 's/:.*: no-/: no-/' > $tmp1
     17 
     18 diff $tmp1 $tmp2