scc

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

0084-rule.sh (273B)


      1 #!/bin/sh
      2 
      3 trap 'rm -f $tmp1 $tmp2 f f1 f2 f3' EXIT INT TERM QUIT HUP
      4 
      5 tmp1=tmp1.$$
      6 tmp2=tmp2.$$
      7 
      8 echo f3 > $tmp2
      9 
     10 touch -t 200711121015 f1 f2
     11 touch -t 200711121016 f
     12 touch -t 200711121017 f3
     13 
     14 (scc-make -f- > $tmp1 2>&1) <<'EOF'
     15 f: f1 f2 f3
     16 	@echo $?
     17 EOF
     18 
     19 diff $tmp1 $tmp2