scc

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

0023-extract.sh (324B)


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