summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
Diffstat (limited to 'source3/script')
-rw-r--r--source3/script/installmsg.sh65
-rwxr-xr-xsource3/script/installswat.sh296
-rw-r--r--source3/script/mkbuildoptions.awk1
3 files changed, 0 insertions, 362 deletions
diff --git a/source3/script/installmsg.sh b/source3/script/installmsg.sh
deleted file mode 100644
index 859e4c10cf..0000000000
--- a/source3/script/installmsg.sh
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh
-# first version (Sept 2003) written by Shiro Yamada <shiro@miraclelinux.com>
-# based on the first verion (March 2002) of installdat.sh written by Herb Lewis
-
-DESTDIR=$1
-MSGDIR=`echo $2 | sed 's/\/\//\//g'`
-SRCDIR=$3/
-shift
-shift
-shift
-
-case $0 in
- *uninstall*)
- if test ! -d "$DESTDIR/$MSGDIR"; then
- echo "Directory $DESTDIR/$MSGDIR does not exist! "
- echo "Do a "make installmsg" or "make install" first. "
- exit 1
- fi
- mode='uninstall'
- ;;
- *) mode='install' ;;
-esac
-
-for f in $SRCDIR/po/*.msg; do
- FNAME="$DESTDIR/$MSGDIR/`basename $f`"
- if test "$mode" = 'install'; then
- echo "Installing $f as $FNAME "
- cp "$f" "$FNAME"
- if test ! -f "$FNAME"; then
- echo "Cannot install $FNAME. Does $USER have privileges? "
- exit 1
- fi
- chmod 0644 "$FNAME"
- elif test "$mode" = 'uninstall'; then
- echo "Removing $FNAME "
- rm -f "$FNAME"
- if test -f "$FNAME"; then
- echo "Cannot remove $FNAME. Does $USER have privileges? "
- exit 1
- fi
- else
- echo "Unknown mode, $mode. Script called as $0 "
- exit 1
- fi
-done
-
-if test "$mode" = 'install'; then
- cat << EOF
-==============================================================================
-The SWAT msg files have been installed. You may uninstall the msg files using
-the command "make uninstallmsg" or "make uninstall" to uninstall binaries, man
-pages, msg files, and shell scripts.
-==============================================================================
-EOF
-else
- cat << EOF
-=============================================================================
-The SWAT msg files have been removed. You may restore these files using the
-command "make installmsg" or "make install" to install binaries, man pages,
-modules, msg files, and shell scripts.
-======================================================================
-EOF
-fi
-
-exit 0
diff --git a/source3/script/installswat.sh b/source3/script/installswat.sh
deleted file mode 100755
index 40596f3bd8..0000000000
--- a/source3/script/installswat.sh
+++ /dev/null
@@ -1,296 +0,0 @@
-#!/bin/sh
-#first version March 1998, Andrew Tridgell
-
-DESTDIR=$1
-SWATDIR=`echo $2 | sed 's/\/\//\//g'`
-SRCDIR=$3/
-BOOKDIR="$DESTDIR/$SWATDIR/using_samba"
-
-case $0 in
- *uninstall*)
- echo "Removing SWAT from $DESTDIR/$SWATDIR "
- echo "Removing the Samba Web Administration Tool "
- printf "%s" "Removed "
- mode='uninstall'
- ;;
- *)
- echo "Installing SWAT in $DESTDIR/$SWATDIR "
- echo "Installing the Samba Web Administration Tool "
- printf "%s" "Installing "
- mode='install'
- ;;
-esac
-
-LANGS=". `cd $SRCDIR../swat/; /bin/echo lang/??`"
-echo "langs are `cd $SRCDIR../swat/lang/; /bin/echo ??` "
-
-if test "$mode" = 'install'; then
- for ln in $LANGS; do
- SWATLANGDIR="$DESTDIR/$SWATDIR/$ln"
- for d in $SWATLANGDIR $SWATLANGDIR/help $SWATLANGDIR/images \
- $SWATLANGDIR/include $SWATLANGDIR/js; do
- if [ ! -d $d ]; then
- mkdir -p $d
- if [ ! -d $d ]; then
- echo "Failed to make directory $d, does $USER have privileges? "
- exit 1
- fi
- fi
- done
- done
-fi
-
-for ln in $LANGS; do
-
- # images
- for f in $SRCDIR../swat/$ln/images/*.gif; do
- if [ ! -f $f ] ; then
- continue
- fi
- FNAME="$DESTDIR/$SWATDIR/$ln/images/`basename $f`"
- echo $FNAME
- if test "$mode" = 'install'; then
- cp "$f" "$FNAME"
- if test ! -f "$FNAME"; then
- echo "Cannot install $FNAME. Does $USER have privileges? "
- exit 1
- fi
- chmod 0644 "$FNAME"
- elif test "$mode" = 'uninstall'; then
- rm -f "$FNAME"
- if test -f "$FNAME"; then
- echo "Cannot remove $FNAME. Does $USER have privileges? "
- exit 1
- fi
- else
- echo "Unknown mode, $mode. Script called as $0 "
- exit 1
- fi
- done
-
- # html help
- for f in $SRCDIR../swat/$ln/help/*.html; do
- if [ ! -f $f ] ; then
- continue
- fi
- FNAME="$DESTDIR/$SWATDIR/$ln/help/`basename $f`"
- echo $FNAME
- if test "$mode" = 'install'; then
- if [ "x$BOOKDIR" = "x" ]; then
- cat $f | sed 's/@BOOKDIR@.*$//' > $FNAME.tmp
- else
- cat $f | sed 's/@BOOKDIR@//' > $FNAME.tmp
- fi
- if test ! -f "$FNAME.tmp"; then
- echo "Cannot install $FNAME. Does $USER have privileges? "
- exit 1
- fi
- f=$FNAME.tmp
- cp "$f" "$FNAME"
- rm -f "$f"
- if test ! -f "$FNAME"; then
- echo "Cannot install $FNAME. Does $USER have privileges? "
- exit 1
- fi
- chmod 0644 "$FNAME"
- elif test "$mode" = 'uninstall'; then
- rm -f "$FNAME"
- if test -f "$FNAME"; then
- echo "Cannot remove $FNAME. Does $USER have privileges? "
- exit 1
- fi
- fi
- done
-
- # "server-side" includes
- for f in $SRCDIR../swat/$ln/include/*; do
- if [ ! -f $f ] ; then
- continue
- fi
- FNAME="$DESTDIR/$SWATDIR/$ln/include/`basename $f`"
- echo $FNAME
- if test "$mode" = 'install'; then
- cp "$f" "$FNAME"
- if test ! -f "$FNAME"; then
- echo "Cannot install $FNAME. Does $USER have privileges? "
- exit 1
- fi
- chmod 0644 $FNAME
- elif test "$mode" = 'uninstall'; then
- rm -f "$FNAME"
- if test -f "$FNAME"; then
- echo "Cannot remove $FNAME. Does $USER have privileges? "
- exit 1
- fi
- fi
- done
-
-done
-
-# Install/ remove html documentation (if html documentation tree is here)
-
-if [ -d $SRCDIR../docs/htmldocs/ ]; then
-
- for dir in htmldocs/manpages htmldocs/Samba3-ByExample htmldocs/Samba3-Developers-Guide htmldocs/Samba3-HOWTO
- do
-
- if [ ! -d $SRCDIR../docs/$dir ]; then
- continue
- fi
-
- INSTALLDIR="$DESTDIR/$SWATDIR/help/`echo $dir | sed 's/htmldocs\///g'`"
- if test ! -d "$INSTALLDIR" -a "$mode" = 'install'; then
- mkdir "$INSTALLDIR"
- if test ! -d "$INSTALLDIR"; then
- echo "Failed to make directory $INSTALLDIR, does $USER have privileges? "
- exit 1
- fi
- fi
-
- for f in $SRCDIR../docs/$dir/*.html; do
- FNAME=$INSTALLDIR/`basename $f`
- echo $FNAME
- if test "$mode" = 'install'; then
- cp "$f" "$FNAME"
- if test ! -f "$FNAME"; then
- echo "Cannot install $FNAME. Does $USER have privileges? "
- exit 1
- fi
- chmod 0644 $FNAME
- elif test "$mode" = 'uninstall'; then
- rm -f "$FNAME"
- if test -f "$FNAME"; then
- echo "Cannot remove $FNAME. Does $USER have privileges? "
- exit 1
- fi
- fi
- done
-
- if test -d "$SRCDIR../docs/$dir/images/"; then
- if test ! -d "$INSTALLDIR/images/" -a "$mode" = 'install'; then
- mkdir "$INSTALLDIR/images"
- if test ! -d "$INSTALLDIR/images/"; then
- echo "Failed to make directory $INSTALLDIR/images, does $USER have privileges? "
- exit 1
- fi
- fi
- for f in $SRCDIR../docs/$dir/images/*.png; do
- FNAME=$INSTALLDIR/images/`basename $f`
- echo $FNAME
- if test "$mode" = 'install'; then
- cp "$f" "$FNAME"
- if test ! -f "$FNAME"; then
- echo "Cannot install $FNAME. Does $USER have privileges? "
- exit 1
- fi
- chmod 0644 $FNAME
- elif test "$mode" = 'uninstall'; then
- rm -f "$FNAME"
- if test -f "$FNAME"; then
- echo "Cannot remove $FNAME. Does $USER have privileges? "
- exit 1
- fi
- fi
- done
- fi
- done
-fi
-
-# Install/ remove Using Samba book (but only if it is there)
-
-if [ "x$BOOKDIR" != "x" -a -f $SRCDIR../docs/htmldocs/using_samba/toc.html ]; then
-
- # Create directories
-
- for d in $BOOKDIR $BOOKDIR/figs ; do
- if test ! -d "$d" -a "$mode" = 'install'; then
- mkdir $d
- if test ! -d "$d"; then
- echo "Failed to make directory $d, does $USER have privileges? "
- exit 1
- fi
- fi
- done
-
- # HTML files
-
- for f in $SRCDIR../docs/htmldocs/using_samba/*.html; do
- FNAME=$BOOKDIR/`basename $f`
- echo $FNAME
- if test "$mode" = 'install'; then
- cp "$f" "$FNAME"
- if test ! -f "$FNAME"; then
- echo "Cannot install $FNAME. Does $USER have privileges? "
- exit 1
- fi
- chmod 0644 $FNAME
- elif test "$mode" = 'uninstall'; then
- rm -f "$FNAME"
- if test -f "$FNAME"; then
- echo "Cannot remove $FNAME. Does $USER have privileges? "
- exit 1
- fi
- fi
- done
-
- for f in $SRCDIR../docs/htmldocs/using_samba/*.gif; do
- FNAME=$BOOKDIR/`basename $f`
- echo $FNAME
- if test "$mode" = 'install'; then
- cp "$f" "$FNAME"
- if test ! -f "$FNAME"; then
- echo "Cannot install $FNAME. Does $USER have privileges? "
- exit 1
- fi
- chmod 0644 $FNAME
- elif test "$mode" = 'uninstall'; then
- rm -f "$FNAME"
- if test -f "$FNAME"; then
- echo "Cannot remove $FNAME. Does $USER have privileges? "
- exit 1
- fi
- fi
- done
-
- # Figures
-
- for f in $SRCDIR../docs/htmldocs/using_samba/figs/*.gif; do
- FNAME=$BOOKDIR/figs/`basename $f`
- echo $FNAME
- if test "$mode" = 'install'; then
- cp "$f" "$FNAME"
- if test ! -f "$FNAME"; then
- echo "Cannot install $FNAME. Does $USER have privileges? "
- exit 1
- fi
- chmod 0644 $FNAME
- elif test "$mode" = 'uninstall'; then
- rm -f "$FNAME"
- if test -f "$FNAME"; then
- echo "Cannot remove $FNAME. Does $USER have privileges? "
- exit 1
- fi
- fi
- done
-
-fi
-
-if test "$mode" = 'install'; then
- cat << EOF
-======================================================================
-The SWAT files have been installed. Remember to read the documentation
-for information on enabling and using SWAT
-======================================================================
-EOF
-else
- cat << EOF
-======================================================================
-The SWAT files have been removed. You may restore these files using
-the command "make installswat" or "make install" to install binaries,
-man pages, modules, SWAT, and shell scripts.
-======================================================================
-EOF
-fi
-
-exit 0
-
diff --git a/source3/script/mkbuildoptions.awk b/source3/script/mkbuildoptions.awk
index 122489edd3..1a32d7af6b 100644
--- a/source3/script/mkbuildoptions.awk
+++ b/source3/script/mkbuildoptions.awk
@@ -79,7 +79,6 @@ BEGIN {
print " output(screen,\" SBINDIR: %s\\n\", get_dyn_SBINDIR());";
print " output(screen,\" BINDIR: %s\\n\", get_dyn_BINDIR());";
- print " output(screen,\" SWATDIR: %s\\n\", get_dyn_SWATDIR());";
print " output(screen,\" CONFIGFILE: %s\\n\", get_dyn_CONFIGFILE());";
print " output(screen,\" LOGFILEBASE: %s\\n\", get_dyn_LOGFILEBASE());";