1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-07 12:23:51 +03:00
Files
samba-mirror/source/script/installswat.sh
Andrew Tridgell 760cc6bea5 r8642: - fixed install of new swat files
- removed old provisioning items from esptest menu
2007-10-10 13:29:48 -05:00

34 lines
664 B
Bash

#!/bin/sh
SWATDIR=$1
SRCDIR=$2
LIBDIR=$3
echo Installing swat files in $SWATDIR
cd $SRCDIR/../swat || exit 1
mkdir -p $SWATDIR || exit 1
installdir() {
for f in $*; do
dname=`dirname $f`
echo "Installing $f in $dname"
test -d $SWATDIR/$dname || mkdir -p $SWATDIR/$dname || exit 1
cp $f $SWATDIR/$dname/ || exit 1
chmod 0644 $SWATDIR/$f || exit 1
done
}
installdir *.esp *.js */*.js */*.ejs */*.esp
installdir */*.png */*.ico */*.gif */*.css
cat << EOF
======================================================================
The swat files have been installed.
======================================================================
EOF
exit 0