summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource3/script/installswat.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/source3/script/installswat.sh b/source3/script/installswat.sh
index be0cdf3eef..7ac675de10 100755
--- a/source3/script/installswat.sh
+++ b/source3/script/installswat.sh
@@ -62,14 +62,17 @@ for ln in $LANGS; do
done
-# Install html documentation
+# Install html documentation (if html documentation tree is here)
-for f in $SRCDIR../docs/htmldocs/*.html; do
- FNAME=$SWATDIR/help/`basename $f`
- echo $FNAME
- cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
- chmod 0644 $FNAME
-done
+if [ -d $SRCDIR../docs/htmldocs/ ]; then
+
+ for f in $SRCDIR../docs/htmldocs/*.html; do
+ FNAME=$SWATDIR/help/`basename $f`
+ echo $FNAME
+ cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
+ chmod 0644 $FNAME
+ done
+fi
# Install Using Samba book (but only if it is there)