scc

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

0015-print.sh (420B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 trap 'rm -f file.a $tmp1' EXIT
      6 trap 'exit $?' HUP INT TERM
      7 
      8 tmp1=tmp1.$$
      9 
     10 ############################################################################
     11 #print 2nd member with verbose
     12 
     13 cp master.a file.a
     14 
     15 $EXEC scc ar -pv file.a file2 >$tmp1
     16 diff -u $tmp1 - <<EOF
     17 
     18 <file2>
     19 
     20 But this other one is the second one,
     21 and it shouldn't go in the first position
     22 because it should go in the second position.
     23 EOF