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
2006-03-08 21:42:12 +00:00
prefix = ` echo $3 | sed 's/\/\//\//g' `
BINDIR = ` echo $4 | sed 's/\/\//\//g' `
2006-06-10 15:16:01 +00:00
SBINDIR = @sbindir@
2006-03-08 21:42:12 +00:00
shift
1996-05-04 07:50:46 +00:00
shift
shift
shift
for p in $* ; do
1998-08-10 01:55:42 +00:00
p2 = ` basename $p `
2006-02-24 00:30:09 +00:00
echo " Installing $p as $DESTDIR / $BINDIR / $p2 "
2006-02-22 21:41:14 +00:00
if [ -f $DESTDIR /$BINDIR /$p2 ] ; then
rm -f $DESTDIR /$BINDIR /$p2 .old
mv $DESTDIR /$BINDIR /$p2 $DESTDIR /$BINDIR /$p2 .old
1996-05-04 07:50:46 +00:00
fi
2006-02-22 21:41:14 +00:00
cp $p $DESTDIR /$BINDIR /
chmod $INSTALLPERMS $DESTDIR /$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
2006-03-08 21:42:12 +00:00
if [ ! -d $DESTDIR /@rootsbindir@ ] ; then
mkdir $DESTDIR /@rootsbindir@
2006-02-24 00:30:09 +00:00
fi
2006-03-08 21:42:12 +00:00
echo " Creating sym link $DESTDIR /@rootsbindir@/mount.smbfs to $BINDIR / $p2 "
ln -sf $BINDIR /$p2 $DESTDIR /@rootsbindir@/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