diff options
Diffstat (limited to 'source/script/installswat.sh')
-rwxr-xr-x | source/script/installswat.sh | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/source/script/installswat.sh b/source/script/installswat.sh index c66604cdb84..8868d4cbb1f 100755 --- a/source/script/installswat.sh +++ b/source/script/installswat.sh @@ -8,28 +8,20 @@ BOOKDIR=$SWATDIR/using_samba echo Installing SWAT in $SWATDIR echo Installing the Samba Web Administration Tool -LANGS=". `cd $SRCDIR../swat/; /bin/echo lang/??`" -echo Installing langs are `cd $SRCDIR../swat/lang/; /bin/echo ??` - -for ln in $LANGS; do - SWATLANGDIR=$SWATDIR/$ln - for d in $SWATLANGDIR $SWATLANGDIR/help $SWATLANGDIR/images \ - $SWATLANGDIR/include; do +for d in $SWATDIR $SWATDIR/help $SWATDIR/images $SWATDIR/include; do if [ ! -d $d ]; then - mkdir -p $d + mkdir $d if [ ! -d $d ]; then echo Failed to make directory $d, does $USER have privileges? exit 1 fi fi - done done # Install images -for ln in $LANGS; do -for f in $SRCDIR../swat/$ln/images/*.gif; do - FNAME=$SWATDIR/$ln/images/`basename $f` +for f in $SRCDIR../swat/images/*.gif; do + FNAME=$SWATDIR/images/`basename $f` echo $FNAME cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges? chmod 0644 $FNAME @@ -37,8 +29,8 @@ done # Install html help -for f in $SRCDIR../swat/$ln/help/*.html; do - FNAME=$SWATDIR/$ln/help/`basename $f` +for f in $SRCDIR../swat/help/*.html; do + FNAME=$SWATDIR/help/`basename $f` echo $FNAME if [ "x$BOOKDIR" = "x" ]; then cat $f | sed 's/@BOOKDIR@.*$//' > $f.tmp @@ -62,15 +54,13 @@ done # Install "server-side" includes -for f in $SRCDIR../swat/$ln/include/*.html; do - FNAME=$SWATDIR/$ln/include/`basename $f` +for f in $SRCDIR../swat/include/*.html; do + FNAME=$SWATDIR/include/`basename $f` echo $FNAME cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges? chmod 0644 $FNAME done -done - # Install Using Samba book if [ "x$BOOKDIR" != "x" ]; then |