mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
build: Remove unused uninstall*.sh scripts
Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
This commit is contained in:
parent
d98f107544
commit
26ff1f2167
@ -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
|
@ -1 +0,0 @@
|
||||
installdat.sh
|
@ -1,37 +0,0 @@
|
||||
#!/bin/sh
|
||||
#4 July 96 Dan.Shearer@UniSA.edu.au
|
||||
#
|
||||
# 13 Aug 2001 Rafal Szczesniak <mimir@spin.ict.pwr.wroc.pl>
|
||||
# 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
|
@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
script/installmo.sh
|
@ -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
|
@ -1 +0,0 @@
|
||||
installmsg.sh
|
@ -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
|
@ -1 +0,0 @@
|
||||
installswat.sh
|
Loading…
Reference in New Issue
Block a user