scc

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

0031-move.sh (379B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 cleanup()
      6 {
      7 	st=$?
      8 	rm -f file* $tmp1 $tmp2
      9 	exit $st
     10 }
     11 
     12 trap 'rm -f file* $tmp1' EXIT
     13 trap 'exit 1' HUP INT TERM
     14 
     15 tmp1=tmp1.$$
     16 
     17 ############################################################################
     18 #and now, test without parameters
     19 
     20 cp master.a file.a
     21 $EXEC scc ar -mv file.a
     22 $EXEC scc ar -t file.a > $tmp1
     23 
     24 diff -u $tmp1 - <<EOF
     25 file1
     26 file2
     27 file3
     28 EOF