scc

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

0038-update.sh (329B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 trap 'rm -f file* $tmp1' EXIT
      6 trap 'exit $?' HUP INT TERM
      7 
      8 tmp1=tmp1.$$
      9 tmp2=tmp2.$$
     10 
     11 ############################################################################
     12 #Update without parameters
     13 
     14 cp master.a file.a
     15 $EXEC scc ar -rv file.a
     16 
     17 $EXEC scc ar -t file.a > $tmp1
     18 diff -u $tmp1 - <<EOF
     19 file1
     20 file2
     21 file3
     22 EOF