r7100: install lately added files too
[jelmer/samba4-debian.git] / source / script / installswat.sh
1 #!/bin/sh
2
3 SWATDIR=$1
4 SRCDIR=$2/
5
6 echo Installing swat files in $SWATDIR
7
8 cd $SRCDIR/../swat || exit 1
9
10 installdir() {
11     dir=$1
12     ext=$2
13     mkdir -p $SWATDIR/$dir || exit 1
14     for f in $dir/*.$ext; do
15         echo Installing $f
16         cp $f $SWATDIR/$dir/ || exit 1
17         chmod 0644 $SWATDIR/$f || exit 1
18     done
19 }
20
21 installdir . esp
22 installdir . ico
23 installdir esptest esp
24 installdir esptest js
25 installdir images png
26 installdir images gif
27 installdir scripting ejs
28 installdir scripting esp
29 installdir scripting js
30 installdir style css
31 installdir docs js
32
33 cat << EOF
34 ======================================================================
35 The swat files have been installed. 
36 ======================================================================
37 EOF
38
39 exit 0
40