BUG 1129: patch from shiro@miraclelinux.com (Shiro Yamada) to install image files...
authorGerald Carter <jerry@samba.org>
Tue, 2 Mar 2004 18:10:53 +0000 (18:10 +0000)
committerGerald Carter <jerry@samba.org>
Tue, 2 Mar 2004 18:10:53 +0000 (18:10 +0000)
(This used to be commit 42d8455a02fa89d37864d32c49d598ba9cdc1552)

source3/script/installswat.sh

index c0285bda5589f6570788899aeec36c417df18e36..495386e0b7ad497fe8feb231e4b44076627ba9c1 100755 (executable)
@@ -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)