scc

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

0004-append.sh (308B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 tmp1=`mktemp`
      6 tmp2=`mktemp`
      7 
      8 trap "rm -f file.a f1 f2 f3 $tmp1 $tmp2; exit" 0 2 3
      9 
     10 ###########################################################################
     11 #empty file list
     12 
     13 rm -f file.a
     14 ar -qv file.a
     15 if ! test -f file.a
     16 then
     17 	echo "ar -q didn't generated empty archive" >&2
     18 	exit 1
     19 fi