From 268a86e1764aaab318d3af3d7ff4c9860a7ac3e4 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 22 Mar 2006 20:42:33 +0000 Subject: r14661: Install symlinks for shared libraries (This used to be commit 3286636dbb78485e57357a2e7c23579e808264b2) --- source4/script/installlib.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/script') 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 -- cgit