s4:repl_meta_data LDB module - change counter variables to "unsigned" where appropriate
[Samba/ekacnet.git] / source3 / script / installbin.sh.in
blobc607d9e44505a312cfd21051a5ab4b488101eaa1
1 #!/bin/sh
3 INSTALLPERMS=$1
4 DESTDIR=$2
5 prefix=`echo $3 | sed 's/\/\//\//g'`
6 BINDIR=`echo $4 | sed 's/\/\//\//g'`
7 SBINDIR=@sbindir@
8 shift
9 shift
10 shift
11 shift
13 for p in $*; do
14 p2=`basename $p`
15 echo "Installing $p as $DESTDIR/$BINDIR/$p2 "
16 if [ -f $DESTDIR/$BINDIR/$p2 ]; then
17 rm -f $DESTDIR/$BINDIR/$p2.old
18 mv $DESTDIR/$BINDIR/$p2 $DESTDIR/$BINDIR/$p2.old
20 cp $p $DESTDIR/$BINDIR/
21 chmod $INSTALLPERMS $DESTDIR/$BINDIR/$p2
22 done
25 cat << EOF
26 ======================================================================
27 The binaries are installed. You may restore the old binaries (if there
28 were any) using the command "make revert". You may uninstall the binaries
29 using the command "make uninstallbin" or "make uninstall" to uninstall
30 binaries, man pages and shell scripts.
31 ======================================================================
32 EOF
34 exit 0