scc

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

0006-iflag.sh (272B)


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