home *** CD-ROM | disk | FTP | other *** search
/ BUG 1 / BUGCD1996_0708.ISO / pc / util / minilin / minilin.exe / USR / BIN / LNSIZE < prev    next >
Text File  |  1994-05-19  |  300b  |  21 lines

  1. #!/bin/sh
  2.  
  3. declare -i TheSize=0
  4.  
  5. ReturnSize () {
  6.     TheSize="$1";
  7. }
  8.  
  9. DoLink () {
  10.     OutFile=`basename $1 .a`
  11.     gcc -s -N -jump -o $OutFile $1 -lm -ltermcap
  12.     ReturnSize `ls -s $1`
  13.     if [ $TheSize -gt 30 ] ; then
  14.         gcc -s -jump -o $OutFile $1 -lm -ltermcap
  15.     fi
  16. }
  17.  
  18. for i in ../bin.a/*.a; do
  19.     DoLink $i;
  20. done;
  21.