scc

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

0008-delete.sh (337B)


      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, 1st and 2nd
     10 
     11 cp master.a file.a
     12 
     13 $EXEC scc ar -dv file.a file1 file2
     14 
     15 if $EXEC scc ar -tv file.a file1 file2
     16 then
     17 	echo file1 or file2 were not deleted >&2
     18 	exit 1
     19 fi