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.install  downloads

#!/bin/sh

# 	$Id: jmr.install,v 1.4 1997/07/17 17:34:37 jvuokko Exp $	


#################################################################
#
# Script to install 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 -- installation 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 "Installation stopped, log in as root and try again."
exit 1
fi

echo
echo "Note that jmr install files to these directories."
echo
echo "binary directory    : "$BINDIR
echo "manual              : "$MANDIR
echo "rest of jmr's stuff : "$DESTDIR
echo
echo "If you don't accept this, then you should install everything manually."
echo

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

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

#
# Install all necessary files
# 
echo 
echo "Installing binary"
if ! install -m 755 jmr $BINDIR ; then
echo "Failed!"
exit 1
fi
echo "Installing manual"
if ! install -m 644 jmr.1 $MANDIR ; then
echo "Failed!"
exit 1
fi
echo "Installing documents and other stuff (documentation, samples, etc)"
install -d $DESTDIR
install -m 644 COPYING $DESTDIR
install -m 644 README $DESTDIR
install -m 644 TODO $DESTDIR
install -m 644 BUGS $DESTDIR
install -m 644 CHANGES $DESTDIR
install -m 644 LUEMINUT $DESTDIR
install -m 644 lueminut.html $DESTDIR
install -m 644 sample.rc $DESTDIR
echo
echo Jmr is installed.
echo
Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2008 IT MARUHN