File:  [Early binutils] / binutils / hp-bin / mkhplib
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:07:16 2018 UTC (8 years, 2 months ago) by root
Branches: fsf, MAIN
CVS tags: binutils-1991_0417_1_9, HEAD
binutils-1.9

#!/bin/csh -f

if (! -d /usr/local/lib/gnu) then
  mkdir /usr/local/lib/gnu
endif

# Make a dummy "libg.a".
/bin/ar q /tmp/libg$$.a
hpxt /tmp/libg$$.a /usr/local/lib/gnu/libg.a
rm -f /tmp/libg$$.a

# Note: ordering of directories must be reverse of the normal search
# order!  This is because we are compressing all of the directories
# into a single directory.  If two directories each contain a library
# with the same name, the one we convert second will be the one we
# end up with.

foreach dir (/usr/local/lib /usr/lib /lib)
  cd $dir
  foreach i (lib*.a)
    echo "$dir/$i"
    hpxt $i /usr/local/lib/gnu/$i
  end
end

cd /lib
foreach i (*crt0.o)
  echo "/lib/$i"
  hpxt $i /usr/local/lib/gnu/$i
end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.