diff options
Diffstat (limited to 'source/script')
-rwxr-xr-x | source/script/installswat.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/script/installswat.sh b/source/script/installswat.sh index c0285bda558..495386e0b7a 100755 --- a/source/script/installswat.sh +++ b/source/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) |