1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/source3/script/installscripts.sh
Andrew Tridgell 4eba893b02 - added comments to byteorder.h explaining how it works.
- fixed problem with installscripts if srcdir is not set
- fixed ptr init bug in interface.c
- changed default lookup type in nmblookup to match nbtstat under NT
- new quotas fixes for sunos and solaris
(This used to be commit e775576f02)
1996-06-08 04:33:37 +00:00

27 lines
482 B
Bash
Executable File

#!/bin/sh
# this script courtesy of James_K._Foote.PARC@xerox.com
INSTALLPERMS=$1
BINDIR=$2
SRCDIR=$3
echo Installing scripts in $BINDIR
for d in $BINDIR; do
if [ ! -d $d ]; then
mkdir $d
if [ ! -d $d ]; then
echo Failed to make directory $d
exit 1
fi
fi
done
cp ${SRCDIR}smbtar $BINDIR
cp ${SRCDIR}addtosmbpass $BINDIR
echo Setting permissions on scripts
chmod $INSTALLPERMS $BINDIR/smbtar
chmod $INSTALLPERMS $BINDIR/addtosmbpass
echo Scripts installed
exit 0