Filewatcher File Search
FTP Search
  
Directory (beta)
  
Content Search (beta)
   
pkg://jmr-0.7.20.1.bin.ELF.tar.gz:172908/jmr-0.7.20.1/jmr.uninstall  downloads

#!/bin/sh                                       
#
# $Id: jmr.uninstall,v 1.1 1997/09/29 14:11:27 jvuokko Exp $	
#
#
#################################################################
#
# Script for uninstall jmr.
#
#################################################################

BINDIR=/usr/local/bin
MANDIR=/usr/local/man/man1
DESTDIR=/usr/local/lib/jmr
PROMPT=""

#
# function to ask response to y/n question. Variable PROMPT must contain
# the question. Response is returned in variable ANSWER
#
ask_response () {
while [ true ] ; do
echo -n "$PROMPT"
read $JUNK ANSWER

if [ "$ANSWER" = "" ]; then
echo "Please answer y or n !"
continue
fi

if [ $ANSWER = y ]; then
break
fi

if [ $ANSWER = n ]; then
break
fi

echo "Please answer y or n !!"
done
}

echo "-----------------------------------------------------------"
echo
echo "jmr -- QWK offline mail reader. Uninstallation program"
echo
echo "-----------------------------------------------------------"
echo

#
# Make sure that user is logged in as root.
#
PROMPT="Are you logged in as root y or n ?"
ask_response
if [ $ANSWER = n ]; then
echo "Uninstallation stopped, log in as root and try again."
exit 1
fi

echo
echo "This uninstall program assumes that jmr is installed to your"
echo "system using jmr's own installation program."
echo 
echo "During unistallation, these files are to be removed:"
echo
echo $BINDIR"/jmr"
echo $MANDIR"/jmr.1"
echo $DESTDIR"/*"
echo
echo "If you don't accept this, then you should remove everything manually."
echo

PROMPT="Continue process? (y/n)"

ask_response
if [ $ANSWER = n ]; then
echo "Uninstallation stopped."
exit 1
fi

echo 
echo "Removing binary"
/bin/rm -f $BINDIR/jmr
echo "Removing manual"
/bin/rm -f $MANDIR/jmr.1
echo "Removing documents and other stuff (documentation, samples, etc)"
/bin/rm -rf $DESTDIR
echo
echo "Jmr is unistalled - sad but true :-("
echo
Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2008 IT MARUHN