s3: Fix EnumDomainAliases when no aliases are in LDAP
[Samba.git] / source4 / script / installswat.sh
blob4304e3e490fb2b4b98d1007f8775637a5b407710
1 #!/bin/sh
3 SWATDIR=$1
4 SRCDIR=$2
6 echo Installing swat files in $SWATDIR
8 cd $SRCDIR/../swat || exit 1
10 mkdir -p $SWATDIR || exit 1
12 installdir() {
13 for f in $*; do
14 dname=`dirname $f`
15 echo "Installing $f in $dname"
16 test -d $SWATDIR/$dname || mkdir -p $SWATDIR/$dname || exit 1
17 cp $f $SWATDIR/$dname/ || exit 1
18 chmod 0644 $SWATDIR/$f || exit 1
19 done
22 installdir `find . -name '*.js'`
23 installdir `find . -name '*.esp'`
24 installdir `find . -name '*.css'`
25 installdir `find . -name '*.png'`
26 installdir `find . -name '*.ico'`
27 installdir `find . -name '*.gif'`
28 installdir `find . -name '*.ejs'`
30 cat << EOF
31 ======================================================================
32 The swat files have been installed.
33 ======================================================================
34 EOF
36 exit 0