blob: 3d7651d4700b0d77709b8828c9e9ff3dc1fc87b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
SWATDIR=$1
SRCDIR=$2/
echo Installing swat files in $SWATDIR
cd $SRCDIR/../swat || exit 1
installdir() {
dir=$1
ext=$2
mkdir -p $SWATDIR/$dir || exit 1
for f in $dir/*.$ext; do
echo Installing $f
cp $f $SWATDIR/$dir/ || exit 1
chmod 0644 $SWATDIR/$f || exit 1
done
}
installdir . html
installdir esptest html
installdir images png
installdir scripting ejs
installdir scripting esp
cat << EOF
======================================================================
The swat files have been installed.
======================================================================
EOF
exit 0
|