scc

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

0021-list.sh (308B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 tmp1=`mktemp`
      6 tmp2=`mktemp`
      7 
      8 trap "rm -f file.a $tmp1 $tmp2" 0 2 3 15
      9 
     10 ############################################################################
     11 #print all members
     12 
     13 cp master.a file.a
     14 $EXEC scc ar -t file.a file1 file2 file3 >$tmp1
     15 
     16 cat <<! > $tmp2
     17 file1
     18 file2
     19 file3
     20 !
     21 
     22 cmp $tmp1 $tmp2