Home
       0007-iflag.sh - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
       0007-iflag.sh (284B)
       ---
            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 MAKEFLAGS=-i scc-make -f test.mk error print-makeflags 2>&1 |
           15 sed 's/sh:.*: *no-/sh: no-/' > $tmp1 2>&1
           16 
           17 diff $tmp1 $tmp2