patch to fix NetServerEnum with multiple workgroup lists kindly supplied.
[Samba.git] / source / script / installscripts.sh
blobc27d41c36b5a84d4c4372096b767717f7aa66a9e
1 #!/bin/sh
2 # this script courtesy of James_K._Foote.PARC@xerox.com
3 INSTALLPERMS=$1
4 BINDIR=$2
5 SRCDIR=$3
7 echo Installing scripts in $BINDIR
9 for d in $BINDIR; do
10 if [ ! -d $d ]; then
11 mkdir $d
12 if [ ! -d $d ]; then
13 echo Failed to make directory $d
14 exit 1
17 done
19 cp ${SRCDIR}smbtar $BINDIR
20 cp ${SRCDIR}addtosmbpass $BINDIR
21 echo Setting permissions on scripts
22 chmod $INSTALLPERMS $BINDIR/smbtar
23 chmod $INSTALLPERMS $BINDIR/addtosmbpass
25 echo Scripts installed
26 exit 0