From 26ff1f2167c8f326c3ea17bc69ee927d58b5baf8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 22 May 2013 12:37:14 +1000 Subject: [PATCH] build: Remove unused uninstall*.sh scripts Reviewed-by: Jelmer Vernooij Reviewed-by: David Disseldorp --- source3/script/uninstallbin.sh.in | 41 -------------------------------------- source3/script/uninstalldat.sh | 1 - source3/script/uninstallman.sh | 37 ---------------------------------- source3/script/uninstallmo.sh | 2 -- source3/script/uninstallmodules.sh | 39 ------------------------------------ source3/script/uninstallmsg.sh | 1 - source3/script/uninstallscripts.sh | 36 --------------------------------- source3/script/uninstallswat.sh | 1 - 8 files changed, 158 deletions(-) delete mode 100755 source3/script/uninstallbin.sh.in delete mode 120000 source3/script/uninstalldat.sh delete mode 100755 source3/script/uninstallman.sh delete mode 100755 source3/script/uninstallmo.sh delete mode 100755 source3/script/uninstallmodules.sh delete mode 120000 source3/script/uninstallmsg.sh delete mode 100755 source3/script/uninstallscripts.sh delete mode 120000 source3/script/uninstallswat.sh diff --git a/source3/script/uninstallbin.sh.in b/source3/script/uninstallbin.sh.in deleted file mode 100755 index 8064db8d95b..00000000000 --- a/source3/script/uninstallbin.sh.in +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -#4 July 96 Dan.Shearer@UniSA.edu.au - -INSTALLPERMS=$1 -DESTDIR=$2 -prefix=`echo $3 | sed 's/\/\//\//g'` -BINDIR=`echo $4 | sed 's/\/\//\//g'` -SBINDIR=@sbindir@ -shift -shift -shift -shift - -if [ ! -d $DESTDIR/$BINDIR ]; then - echo "Directory $DESTDIR/$BINDIR does not exist! " - echo "Do a "make installbin" or "make install" first. " - exit 1 -fi - -for p in $*; do - p2=`basename $p` - if [ -f $DESTDIR/$BINDIR/$p2 ]; then - echo "Removing $DESTDIR/$BINDIR/$p2 " - rm -f $DESTDIR/$BINDIR/$p2 - if [ -f $DESTDIR/$BINDIR/$p2 ]; then - echo "Cannot remove $DESTDIR/$BINDIR/$p2 ... does $USER have privileges? " - fi - fi -done - - -cat << EOF -====================================================================== -The binaries have been uninstalled. You may restore the binaries using -the command "make installbin" or "make install" to install binaries, -man pages, modules and shell scripts. You can restore a previous -version of the binaries (if there were any) using "make revert". -====================================================================== -EOF - -exit 0 diff --git a/source3/script/uninstalldat.sh b/source3/script/uninstalldat.sh deleted file mode 120000 index 656142745c6..00000000000 --- a/source3/script/uninstalldat.sh +++ /dev/null @@ -1 +0,0 @@ -installdat.sh \ No newline at end of file diff --git a/source3/script/uninstallman.sh b/source3/script/uninstallman.sh deleted file mode 100755 index 0fea11cd1b2..00000000000 --- a/source3/script/uninstallman.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -#4 July 96 Dan.Shearer@UniSA.edu.au -# -# 13 Aug 2001 Rafal Szczesniak -# modified to accomodate international man pages (inspired -# by Japanese edition's approach) - - -MANDIR=`echo $1 | sed 's/\/\//\//g'` -SRCDIR=$2 -langs=$3 - -for lang in $langs; do - echo Uninstalling \"$lang\" man pages from $MANDIR/$lang - - for sect in 1 5 7 8 ; do - for m in $MANDIR/$lang/man$sect ; do - for s in $SRCDIR/../docs/manpages/$lang/*$sect; do - FNAME=$m/`basename $s` - if test -f $FNAME; then - echo Deleting $FNAME - rm -f $FNAME - test -f $FNAME && echo Cannot remove $FNAME... does $USER have privileges? - fi - done - done - done -done - -cat << EOF -====================================================================== -The man pages have been uninstalled. You may install them again using -the command "make installman" or make "install" to install binaries, -man pages and shell scripts. -====================================================================== -EOF -exit 0 diff --git a/source3/script/uninstallmo.sh b/source3/script/uninstallmo.sh deleted file mode 100755 index 663c6b12964..00000000000 --- a/source3/script/uninstallmo.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -script/installmo.sh diff --git a/source3/script/uninstallmodules.sh b/source3/script/uninstallmodules.sh deleted file mode 100755 index fc80565cb57..00000000000 --- a/source3/script/uninstallmodules.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -#4 July 96 Dan.Shearer@UniSA.edu.au - -INSTALLPERMS=$1 -DESTDIR=$2 -prefix=`echo $3 | sed 's/\/\//\//g'` -LIBDIR=`echo $4 | sed 's/\/\//\//g'` -shift -shift -shift -shift - -if [ ! -d $DESTDIR/$LIBDIR ]; then - echo "Directory $DESTDIR/$LIBDIR does not exist! " - echo "Do a "make installmodules" or "make install" first. " - exit 1 -fi - -for p in $*; do - p2=`basename $p` - if [ -f $DESTDIR/$LIBDIR/$p2 ]; then - echo "Removing $DESTDIR/$LIBDIR/$p2 " - rm -f $DESTDIR/$LIBDIR/$p2 - if [ -f $DESTDIR/$LIBDIR/$p2 ]; then - echo "Cannot remove $DESTDIR/$LIBDIR/$p2 ... does $USER have privileges? " - fi - fi -done - - -cat << EOF -====================================================================== -The modules have been uninstalled. You may restore the modules using -the command "make installmodules" or "make install" to install -binaries, modules, man pages and shell scripts. -====================================================================== -EOF - -exit 0 diff --git a/source3/script/uninstallmsg.sh b/source3/script/uninstallmsg.sh deleted file mode 120000 index c108fa44168..00000000000 --- a/source3/script/uninstallmsg.sh +++ /dev/null @@ -1 +0,0 @@ -installmsg.sh \ No newline at end of file diff --git a/source3/script/uninstallscripts.sh b/source3/script/uninstallscripts.sh deleted file mode 100755 index cf7fd719993..00000000000 --- a/source3/script/uninstallscripts.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# 5 July 96 Dan.Shearer@UniSA.Edu.Au - almost identical to uninstallbin.sh - -INSTALLPERMS=$1 -BINDIR=`echo $2 | sed 's/\/\//\//g'` - -shift -shift - -if [ ! -d $BINDIR ]; then - echo Directory $BINDIR does not exist! - echo Do a "make installscripts" or "make install" first. - exit 1 -fi - -for p in $*; do - p2=`basename $p` - if [ -f $BINDIR/$p2 ]; then - echo Removing $BINDIR/$p2 - rm -f $BINDIR/$p2 - if [ -f $BINDIR/$p2 ]; then - echo Cannot remove $BINDIR/$p2 ... does $USER have privileges? - fi - fi -done - -cat << EOF -====================================================================== -The scripts have been uninstalled. You may reinstall them using -the command "make installscripts" or "make install" to install binaries, -man pages and shell scripts. You may recover a previous version (if any -with "make revert". -====================================================================== -EOF - -exit 0 diff --git a/source3/script/uninstallswat.sh b/source3/script/uninstallswat.sh deleted file mode 120000 index 0dffe646f0b..00000000000 --- a/source3/script/uninstallswat.sh +++ /dev/null @@ -1 +0,0 @@ -installswat.sh \ No newline at end of file -- 2.11.4.GIT