scc

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

0038-update.sh (318B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 tmp1=`mktemp`
      6 tmp2=`mktemp`
      7 
      8 trap "rm -f file* $tmp1 $tmp2; exit" 0 2 3
      9 
     10 ############################################################################
     11 #Update without parameters
     12 
     13 cp master.a file.a
     14 scc-ar -rv file.a
     15 
     16 scc-ar -t file.a > $tmp1
     17 
     18 cat <<EOF > $tmp2
     19 file1
     20 file2
     21 file3
     22 EOF
     23 
     24 cmp $tmp1 $tmp2