1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00
samba-mirror/source4/script/installswat.sh
Tim Potter b4f6a348bb r8403: Reinstate linkpad.gif at Deryck's suggestion.
Install *.gif from swat/images when installing swat.
(This used to be commit 156e090c2c0ec2c7bdf66405c3742839b82fe757)
2007-10-10 13:22:58 -05:00

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