scc

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

0009-delete.sh (336B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 trap 'rm -f file.a' EXIT
      6 trap 'exit 1' HUP INT TERM
      7 
      8 ############################################################################
      9 #delete two members, 2nd and 3rd
     10 
     11 cp master.a file.a
     12 $EXEC scc ar -dv  file.a file2 file3
     13 
     14 if $EXEC scc ar -tv file.a file2 file3
     15 then
     16 	echo file-2 file-3 were not deleted >&2
     17 	exit 1
     18 fi