scc

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

0020-list.sh (341B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 tmp1=`mktemp`
      6 tmp2=`mktemp`
      7 
      8 trap "rm -f file.a $tmp1 $tmp2; exit" 0 2 3
      9 
     10 ############################################################################
     11 #print 2nd member with verbose
     12 
     13 cp master.a file.a
     14 ar -tv file.a file2 >$tmp1
     15 
     16 cat <<! > $tmp2
     17 rw-r--r-- `id -u`/`id -g`	Tue Jan  1 00:00:00 1980 file2
     18 !
     19 
     20 cmp $tmp1 $tmp2