scc

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

0013-print.sh (347B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 trap 'rm -f file.a $tmp1' EXIT
      6 trap 'exit 1' HUP INT TERM
      7 
      8 tmp1=tmp1.$$
      9 
     10 ############################################################################
     11 #print 1st member
     12 
     13 cp master.a file.a
     14 
     15 $EXEC scc ar -p file.a file1 > $tmp1
     16 diff $tmp1 - <<EOF
     17 This is the first file,
     18 and it should go in the
     19 first position in the archive.
     20 EOF