1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

BUG 1129: patch from shiro@miraclelinux.com (Shiro Yamada) to install image files for SWAT

(This used to be commit a01a7fdbd93997185322d1faaa76c408f0ed2b1d)
This commit is contained in:
Gerald Carter 2004-03-02 18:10:12 +00:00
parent 5f4b6ae77a
commit 08d03a7039

View File

@ -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)