r6982: install the swat pages with 'make installswat'
[jra/samba/.git] / source4 / 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 html html
22 installdir html/esptest html
23 installdir html/images png
24 installdir scripting ejs
25
26 cat << EOF
27 ======================================================================
28 The swat files have been installed. 
29 ======================================================================
30 EOF
31
32 exit 0
33