1996-05-04 07:50:46 +00:00
#!/bin/sh
1998-08-10 01:55:42 +00:00
1996-05-04 07:50:46 +00:00
INSTALLPERMS = $1
2003-10-02 21:22:58 +00:00
DESTDIR = $2
2003-10-06 19:24:17 +00:00
BASEDIR = ` echo $3 | sed 's/\/\//\//g' `
BINDIR = ` echo $4 | sed 's/\/\//\//g' `
LIBDIR = ` echo $5 | sed 's/\/\//\//g' `
VARDIR = ` echo $6 | sed 's/\/\//\//g' `
2003-10-02 21:22:58 +00:00
shift
1996-05-04 07:50:46 +00:00
shift
shift
shift
shift
shift
for p in $* ; do
1998-08-10 01:55:42 +00:00
p2 = ` basename $p `
echo Installing $p as $BINDIR /$p2
if [ -f $BINDIR /$p2 ] ; then
1999-12-13 13:27:58 +00:00
rm -f $BINDIR /$p2 .old
1998-08-10 01:55:42 +00:00
mv $BINDIR /$p2 $BINDIR /$p2 .old
1996-05-04 07:50:46 +00:00
fi
1998-08-10 01:55:42 +00:00
cp $p $BINDIR /
chmod $INSTALLPERMS $BINDIR /$p2
1999-12-13 13:27:58 +00:00
# this is a special case, mount needs this in a specific location
if [ $p2 = smbmount ] ; then
2003-10-02 21:22:58 +00:00
if [ ! -d $DESTDIR /sbin ] ; then
mkdir $DESTDIR /sbin
fi
ln -sf $BINDIR /$p2 $DESTDIR /sbin/mount.smbfs
1999-12-13 13:27:58 +00:00
fi
1996-05-04 07:50:46 +00:00
done
cat << EOF
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
The binaries are installed. You may restore the old binaries ( if there
1996-07-05 03:51:27 +00: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 07:50:46 +00:00
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
EOF
exit 0