scc

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

0029-move.sh (324B)


      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 #move 1st without specifier
     12 
     13 cp master.a file.a
     14 scc-ar -mv file.a file1
     15 scc-ar -t file.a > $tmp1
     16 
     17 cat <<EOF > $tmp2
     18 file2
     19 file3
     20 file1
     21 EOF
     22 
     23 cmp $tmp1 $tmp2