2 #fist version March 1998, Andrew Tridgell
8 echo Installing SWAT
in $SWATDIR
9 echo Installing the Samba Web Administration Tool
11 for d
in $SWATDIR $SWATDIR/help $SWATDIR/images
$SWATDIR/include
; do
15 echo Failed to
make directory
$d, does
$USER have privileges?
23 for f
in $SRCDIR..
/swat
/images
/*.gif
; do
24 FNAME
=$SWATDIR/images
/`basename $f`
26 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
32 for f
in $SRCDIR..
/swat
/help
/*.html
; do
33 FNAME
=$SWATDIR/help
/`basename $f`
35 if [ "x$BOOKDIR" = "x" ]; then
36 cat $f |
sed 's/@BOOKDIR@.*$//' > $f.tmp
38 cat $f |
sed 's/@BOOKDIR@//' > $f.tmp
41 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
46 # Install html documentation
48 for f
in $SRCDIR..
/docs
/htmldocs
/*.html
; do
49 FNAME
=$SWATDIR/help
/`basename $f`
51 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
55 # Install "server-side" includes
57 for f
in $SRCDIR..
/swat
/include
/*.html
; do
58 FNAME
=$SWATDIR/include
/`basename $f`
60 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
64 # Install Using Samba book
66 if [ "x$BOOKDIR" != "x" ]; then
70 for d
in $BOOKDIR $BOOKDIR/figs
$BOOKDIR/gifs
; do
74 echo Failed to
make directory
$d, does
$USER have privileges?
82 for f
in $SRCDIR..
/docs
/htmldocs
/using_samba
/*.html
; do
83 FNAME
=$BOOKDIR/`basename $f`
85 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
91 for f
in $SRCDIR..
/docs
/htmldocs
/using_samba
/figs
/*.gif
; do
92 FNAME
=$BOOKDIR/figs
/`basename $f`
94 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
100 for f
in $SRCDIR..
/docs
/htmldocs
/using_samba
/gifs
/*.gif
; do
101 FNAME
=$BOOKDIR/gifs
/`basename $f`
103 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
110 ======================================================================
111 The SWAT files have been installed. Remember to read the swat/README
112 for information on enabling and using SWAT
113 ======================================================================