freebsd-dev/release/scripts/proflibs-install.sh
Joseph Koshy 193ba4ccca Link libcrypt_p.a to the DES profiled library, if this library is present.
PR:		misc/7759
Submitted by:	Carl Mascott <cmascott@world.std.com>
Reviewed by:	jkh
1999-08-19 06:36:24 +00:00

14 lines
255 B
Bash
Executable File

#!/bin/sh
#
if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat proflibs.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
cd ${DESTDIR:-/}usr/lib
if [ -f libdescrypt_p.a ]
then
ln -f -s libdescrypt_p.a libcrypt_p.a
fi
exit 0