summaryrefslogtreecommitdiffstats
path: root/source/script
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-05-05 15:52:11 +0000
committerGerald Carter <jerry@samba.org>2004-05-05 15:52:11 +0000
commitd6ed9e8d1e3c72d19399c2da9a76da67fe147d63 (patch)
tree78108befd2295f074c07be0e38ae855432d00048 /source/script
parentd983d3b7b237e457d749570c81bf9a045ff62584 (diff)
downloadsamba-d6ed9e8d1e3c72d19399c2da9a76da67fe147d63.tar.gz
samba-d6ed9e8d1e3c72d19399c2da9a76da67fe147d63.tar.xz
samba-d6ed9e8d1e3c72d19399c2da9a76da67fe147d63.zip
r496: fixing swat welcome page -- added links to example guide, devel guide, and howto (all in multi page format)
Diffstat (limited to 'source/script')
-rwxr-xr-xsource/script/installswat.sh55
1 files changed, 34 insertions, 21 deletions
diff --git a/source/script/installswat.sh b/source/script/installswat.sh
index 495386e0b7a..67586a89674 100755
--- a/source/script/installswat.sh
+++ b/source/script/installswat.sh
@@ -75,28 +75,41 @@ 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
+ for dir in htmldocs/ htmldocs/howto htmldocs/guide htmldocs/devel
+ do
+
+ if [ ! -d $SRCDIR../docs/$dir ]; then
+ continue
+ fi
+
+ INSTALLDIR=$SWATDIR/help/`echo $dir | sed 's/htmldocs\///g'`
+ if [ ! -d $INSTALLDIR ]; then
+ mkdir $INSTALLDIR
+ fi
- 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
+ for f in $SRCDIR../docs/$dir/*.html; do
+ FNAME=$INSTALLDIR/`basename $f`
+ echo $FNAME
+ cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
+ chmod 0644 $FNAME
+ done
+
+ if [ -d $SRCDIR../docs/$dir/images/ ]; then
+ if [ ! -d $INSTALLDIR/images/ ]; then
+ mkdir $INSTALLDIR/images
+ if [ ! -d $INSTALLDIR/images/ ]; then
+ echo Failed to make directory $SWATDIR/help/images, does $USER have privileges?
+ exit 1
+ fi
+ fi
+ for f in $SRCDIR../docs/$dir/images/*.png; do
+ FNAME=$INSTALLDIR/`basename $f`
+ echo $FNAME
+ cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
+ chmod 0644 $FNAME
+ done
+ fi
+ done
fi
# Install Using Samba book (but only if it is there)