1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4/script/installswat.sh
Stefan Metzmacher 9a4c00db07 r7103: fix make installswat again:-)
metze
(This used to be commit 46e3f57f0e)
2007-10-10 13:17:16 -05:00

41 lines
751 B
Bash

#!/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 . esp
installdir esptest esp
installdir esptest js
installdir images png
installdir images gif
installdir images ico
installdir scripting ejs
installdir scripting esp
installdir scripting js
installdir style css
installdir docs js
cat << EOF
======================================================================
The swat files have been installed.
======================================================================
EOF
exit 0