2 #fist version March 1998, Andrew Tridgell
6 BOOKDIR
=$SWATDIR/using_samba
8 echo Installing SWAT
in $SWATDIR
9 echo Installing the Samba Web Administration Tool
11 LANGS
=". `cd $SRCDIR../swat/; /bin/echo lang/??`"
12 echo Installing langs are
`cd $SRCDIR../swat/lang/; /bin/echo ??`
15 SWATLANGDIR
=$SWATDIR/$ln
16 for d
in $SWATLANGDIR $SWATLANGDIR/help $SWATLANGDIR/images \
17 $SWATLANGDIR/include
; do
21 echo Failed to
make directory
$d, does
$USER have privileges?
31 for f
in $SRCDIR..
/swat
/$ln/images
/*.gif
; do
32 FNAME
=$SWATDIR/$ln/images
/`basename $f`
34 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
40 for f
in $SRCDIR..
/swat
/$ln/help
/*.html
; do
41 FNAME
=$SWATDIR/$ln/help
/`basename $f`
43 if [ "x$BOOKDIR" = "x" ]; then
44 cat $f |
sed 's/@BOOKDIR@.*$//' > $f.tmp
46 cat $f |
sed 's/@BOOKDIR@//' > $f.tmp
49 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
54 # Install html documentation
56 for f
in $SRCDIR..
/docs
/htmldocs
/*.html
; do
57 FNAME
=$SWATDIR/help
/`basename $f`
59 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
63 # Install "server-side" includes
65 for f
in $SRCDIR..
/swat
/$ln/include
/*.html
; do
66 FNAME
=$SWATDIR/$ln/include
/`basename $f`
68 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
74 # Install Using Samba book
76 if [ "x$BOOKDIR" != "x" ]; then
80 for d
in $BOOKDIR $BOOKDIR/figs
$BOOKDIR/gifs
; do
84 echo Failed to
make directory
$d, does
$USER have privileges?
92 for f
in $SRCDIR..
/docs
/htmldocs
/using_samba
/*.html
; do
93 FNAME
=$BOOKDIR/`basename $f`
95 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
101 for f
in $SRCDIR..
/docs
/htmldocs
/using_samba
/figs
/*.gif
; do
102 FNAME
=$BOOKDIR/figs
/`basename $f`
104 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
110 for f
in $SRCDIR..
/docs
/htmldocs
/using_samba
/gifs
/*.gif
; do
111 FNAME
=$BOOKDIR/gifs
/`basename $f`
113 cp $f $FNAME ||
echo Cannot
install $FNAME. Does
$USER have privileges?
120 ======================================================================
121 The SWAT files have been installed. Remember to read the swat/README
122 for information on enabling and using SWAT
123 ======================================================================