From 61a2ad3c020424cead067cbdc89ea6f25708fde4 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Fri, 17 May 2013 14:16:26 +0200 Subject: swat: Remove swat. Signed-off-by: Kai Blin Reviewed-by: Andrew Bartlett Autobuild-User(master): Kai Blin Autobuild-Date(master): Sat May 18 16:32:38 CEST 2013 on sn-devel-104 --- source3/script/installmsg.sh | 65 -------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 source3/script/installmsg.sh (limited to 'source3/script/installmsg.sh') 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 -# 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 -- cgit