summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-03-02 18:10:53 +0000
committerGerald Carter <jerry@samba.org>2004-03-02 18:10:53 +0000
commit32581b5d7b9f02af67ac020e7938b7ede316b027 (patch)
treedd22fe3c458047360a3800c46ae8976964f20204 /source3
parent5d123b0d92c48b2c40ffc969114d15d3dcd1fd11 (diff)
downloadsamba-32581b5d7b9f02af67ac020e7938b7ede316b027.tar.gz
samba-32581b5d7b9f02af67ac020e7938b7ede316b027.tar.bz2
samba-32581b5d7b9f02af67ac020e7938b7ede316b027.zip
BUG 1129: patch from shiro@miraclelinux.com (Shiro Yamada) to install image files for SWAT
(This used to be commit 42d8455a02fa89d37864d32c49d598ba9cdc1552)
Diffstat (limited to 'source3')
-rwxr-xr-xsource3/script/installswat.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/script/installswat.sh b/source3/script/installswat.sh
index c0285bda55..495386e0b7 100755
--- a/source3/script/installswat.sh
+++ b/source3/script/installswat.sh
@@ -81,6 +81,22 @@ if [ -d $SRCDIR../docs/htmldocs/ ]; then
cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
chmod 0644 $FNAME
done
+
+ if [ -d $SRCDIR../docs/htmldocs/images/ ]; then
+ if [ ! -d $SWATDIR/help/images/ ]; then
+ mkdir $SWATDIR/help/images
+ if [ ! -d $SWATDIR/help/images/ ]; then
+ echo Failed to make directory $SWATDIR/help/images, does $USER have privileges?
+ exit 1
+ fi
+ fi
+ for f in $SRCDIR../docs/htmldocs/images/*.png; do
+ FNAME=$SWATDIR/help/images/`basename $f`
+ echo $FNAME
+ cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
+ chmod 0644 $FNAME
+ done
+ fi
fi
# Install Using Samba book (but only if it is there)