summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-22 20:42:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:06 -0500
commit268a86e1764aaab318d3af3d7ff4c9860a7ac3e4 (patch)
tree1d9d9a98f6341ed6d344670aa91dadc7d3a8f673 /source4/script
parente90d88106abc869d01f20cf319032eb95af04a53 (diff)
downloadsamba-268a86e1764aaab318d3af3d7ff4c9860a7ac3e4.tar.gz
samba-268a86e1764aaab318d3af3d7ff4c9860a7ac3e4.tar.bz2
samba-268a86e1764aaab318d3af3d7ff4c9860a7ac3e4.zip
r14661: Install symlinks for shared libraries
(This used to be commit 3286636dbb78485e57357a2e7c23579e808264b2)
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/installlib.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/script/installlib.sh b/source4/script/installlib.sh
index 4e3d5f62c7..962c9562b1 100755
--- a/source4/script/installlib.sh
+++ b/source4/script/installlib.sh
@@ -1,17 +1,21 @@
#!/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