- added an entry on WinDD to samba.faq
[kai/samba.git] / source3 / script / installscripts.sh
1 #!/bin/sh
2 # this script courtesy of James_K._Foote.PARC@xerox.com
3 INSTALLPERMS=$1
4 BINDIR=$2
5 SRCDIR=$3
6
7 echo Installing scripts in $BINDIR
8
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
15   fi
16  fi
17 done
18
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
24
25 echo Scripts installed
26 exit 0