scc

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

0007-delete.sh (263B)


      1 #!/bin/sh
      2 
      3 
      4 set -e
      5 
      6 trap "rm -f file.a; exit" 0 2 3
      7 
      8 ############################################################################
      9 #delete one member
     10 
     11 cp master.a file.a
     12 
     13 ar -dv file.a file2
     14 
     15 if ar -tv file.a file2
     16 then
     17 	echo file-2 was not deleted >&2
     18 	exit 1
     19 fi