home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / binutils-1.8.x.tar.gz / binutils-1.8.x.tar / binutils / hp-bin / mkhplib < prev   
Text File  |  1990-03-20  |  707b  |  31 lines

  1. #!/bin/csh -f
  2.  
  3. if (! -d /usr/local/lib/gnu) then
  4.   mkdir /usr/local/lib/gnu
  5. endif
  6.  
  7. # Make a dummy "libg.a".
  8. /bin/ar q /tmp/libg$$.a
  9. hpxt /tmp/libg$$.a /usr/local/lib/gnu/libg.a
  10. rm -f /tmp/libg$$.a
  11.  
  12. # Note: ordering of directories must be reverse of the normal search
  13. # order!  This is because we are compressing all of the directories
  14. # into a single directory.  If two directories each contain a library
  15. # with the same name, the one we convert second will be the one we
  16. # end up with.
  17.  
  18. foreach dir (/usr/local/lib /usr/lib /lib)
  19.   cd $dir
  20.   foreach i (lib*.a)
  21.     echo "$dir/$i"
  22.     hpxt $i /usr/local/lib/gnu/$i
  23.   end
  24. end
  25.  
  26. cd /lib
  27. foreach i (*crt0.o)
  28.   echo "/lib/$i"
  29.   hpxt $i /usr/local/lib/gnu/$i
  30. end
  31.