1996-05-04 11:50:46 +04:00
#!/bin/sh
1998-08-10 05:55:42 +04:00
1996-05-04 11:50:46 +04:00
INSTALLPERMS = $1
2003-10-03 01:22:58 +04:00
DESTDIR = $2
2006-02-24 03:30:09 +03:00
BINDIR = ` echo $3 | sed 's/\/\//\//g' `
1996-05-04 11:50:46 +04:00
shift
shift
shift
for p in $* ; do
1998-08-10 05:55:42 +04:00
p2 = ` basename $p `
2006-02-24 03:30:09 +03:00
echo " Installing $p as $DESTDIR / $BINDIR / $p2 "
2006-02-23 00:41:14 +03:00
if [ -f $DESTDIR /$BINDIR /$p2 ] ; then
rm -f $DESTDIR /$BINDIR /$p2 .old
mv $DESTDIR /$BINDIR /$p2 $DESTDIR /$BINDIR /$p2 .old
1996-05-04 11:50:46 +04:00
fi
2006-02-23 00:41:14 +03:00
cp $p $DESTDIR /$BINDIR /
chmod $INSTALLPERMS $DESTDIR /$BINDIR /$p2
1999-12-13 16:27:58 +03:00
# this is a special case, mount needs this in a specific location
if [ $p2 = smbmount ] ; then
2003-10-03 01:22:58 +04:00
if [ ! -d $DESTDIR /sbin ] ; then
mkdir $DESTDIR /sbin
2006-02-24 03:30:09 +03:00
fi
echo " Creating sym link $DESTDIR /sbin/mount.smbfs to $BINDIR / $p2 "
2003-10-03 01:22:58 +04:00
ln -sf $BINDIR /$p2 $DESTDIR /sbin/mount.smbfs
1999-12-13 16:27:58 +03:00
fi
1996-05-04 11:50:46 +04:00
done
cat << EOF
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
The binaries are installed. You may restore the old binaries ( if there
1996-07-05 07:51:27 +04:00
were any) using the command "make revert" . You may uninstall the binaries
using the command "make uninstallbin" or "make uninstall" to uninstall
binaries, man pages and shell scripts.
1996-05-04 11:50:46 +04:00
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
EOF
exit 0