1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source4/script/installlib.sh
Jelmer Vernooij 268a86e176 r14661: Install symlinks for shared libraries
(This used to be commit 3286636dbb)
2007-10-10 13:59:06 -05:00

31 lines
746 B
Bash
Executable File

#!/bin/sh
LIBDIR=$1
SHLIBEXT=$2
shift
shift
for p in $*; do
p2=`basename $p`
lnname=`echo $p2 | sed -e "s/\.$SHLIBEXT.*/.$SHLIBEXT/"`
echo Installing $p as $LIBDIR/$p2
if [ -f $LIBDIR/$p2 ]; then
rm -f $LIBDIR/$p2.old
mv $LIBDIR/$p2 $LIBDIR/$p2.old
fi
cp $p $LIBDIR/
ln -sf $p2 $LIBDIR/$lnname
done
cat << EOF
======================================================================
The shared libraries are installed. You may restore the old libraries (if there
were any) using the command "make revert". You may uninstall the libraries
using the command "make uninstalllib" or "make uninstall" to uninstall
binaries, man pages and shell scripts.
======================================================================
EOF
exit 0