Subject: V1.03 of SIS available
From: [email-masked] (Mike Heins)
Date: 30 Jun 1995 17:33:58 GMT
Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc,comp.lang.perl

SIS - the Self-Installing Shar Program

Version 1.03 of the Self-installing Shar program is now available.  It adds
several new features, has more robust error checking, and now informs
the user of the configuration problem if they have aliased one of the
required system commands.

It is written in Perl, and file extraction has been tested on SunOS
4.1.x, Solaris 2.x, HP-UX 9.x, AIX 3.2.x and 4.1, OSF 3.x, Linux, Dynix,
SCO Unix, Ultrix, NeXT Step, SVR4, and BSDI.

  The package is available via FTP from ftp.cd.com:

         57639 Jun 29 13:25 /pub/prog/sis103.sis
         39372 Jun 29 13:25 /pub/prog/sis103gz.sis

Here is the man page in the signature format, though I encoded it with
gzip and that command will have to be resident on your system to extract it.
The package is available in both compress and gzip format.

Regards,
--
  ______                                                               
  )     (   Mike Heins
 /       |  Central Data Corporation         WWW: http://www.cd.com
(      * |  Internet:  [email-masked]
 \_      |  1602 Newton Dr., Champaign, IL 61821
   \     |
   /    /   800/482-0315 or 217/366-9236 (FAX 217-359-6904)  
   \/\/
---------------------------
"If you think nobody cares if you're alive, try missing a couple of car
payments." -- Earl Wilson
---------------------------

#!/bin/sh
#
# SIS man page - V1.03, 30 Jun 1995
#
# THIS FILE REQUIRES GZIP TO EXTRACT!
#
# This is a self-installing shell archive. Save everything below the cut
# mark as the file "sisman.sis", move to the proper installation
# directory and type:
#
#          sh sisman.sis
# 
# This will extract the files and install the program.
#
# If you DO NOT want to install the program in the same step, type instead:
#
#          sh sisman.sis -n
# 
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
#     Packing List:
#
#     rw-r--r--106/7  18422 Jun 29 15:50 1995 sis.1
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
contact() {
cat <<EoM
	Central Data Corporation
	1602 Newton Drive, Champaign, Illinois, 61821
	email: [email-masked] or [email-masked]
	voice: 217.359.8010 (800.482.0315 in USA and Canada)
	FAX:   217.359.6904  WWW: http://www.cd.com

EoM
}
IN=1
C=`pwd`
B=sisman
U=$C/${B}.uue
T=$C/${B}.+ta
G="
Usage:   $0 [-i|n] [-v]  Self-installing shell archive.

	-i = run install script
	-n = don't run install script
	-v = verbose
"
trap "rm -f $U $T $T.Z ; exit 0" 0 1 2 15
for i in $*
do
case $i in
-v) V="-v"
P="
" 
shift ;; 
-n) IN=
shift;;
-i) IN=1
shift;;
*) echo "$0: Bad argument: $i 

$G"
exit 2;;
esac
done
extmiss() {
cat <<EoM
Essential external command $1 is missing.  Obtain from:

EoM
}
ali() {
echo "The $1 command is aliased.  If installation fails,
contact:"
}
for i in wc tar uudecode
do
set `type $i`
if test $2 = not
then PATH=$PATH:.:./bin
fi
set `type $i`
if test $2 = not
then
extmiss $i
contact
exit 1
elif test -n "$4" -a tracked != "$4"
then
ali $i
contact
else eval $i=$3
fi
done
if test `echo -n test | $wc -c` -eq 4
then F='-n'
E=
else F=
E='\c'
fi
set `type gzip`
if test $2 = not
then PATH="$PATH:.:./bin"
set `type $i`
fi
if test $2 = not
then
extmiss gzip
contact
exit 1
elif test -n "$4"
then
ali uncompress
contact
else UC="$3 -d"
fi
cat << EoM
You should be in a directory where you have determined sisman
can reside.

Any files in the packing list WILL BE OVERWRITTEN if
you have permission:

   rw-r--r--106/10  18422 Jun 29 15:50 1995 sis.1

EoM
echo $F "Ready? (y/N) $E"
read yesno
case $yesno in
[Yy]*);;
*)echo OK.;exit 0
esac
cat << \SHAR_EOF > sisman.uue
SHAR_EOF
if test 9852 -ne "`$wc -c < sisman.uue`"
then
echo shar: error transmitting sisman.uue '(should have been 9852 characters)'
exit 1
fi
echo $F "
Decoding.....$E"
$uudecode $U
if test $? -eq 0
then echo "Done.
"
else echo "
$Prog: error uudecoding $U."
exit 1
fi
echo $F "Decompressing.....$P$E"
$UC $V $T
if test $? -eq 0
then echo "Done.
"
else echo "oops, not compressed. Using uncompressed file.
"
fi
echo $F "Extracting the files.....$P$E"
$tar ${V}xf $T
if test $? -eq 0
then echo "Done.
"
else echo "
$Prog: error extracting tar file."
exit 1
fi
if test $IN
then
echo $F "Running the installation....$E"
nroff -man sis.1 | more
if test $? -eq 0
then
echo "Done.
"
cat << EoM
Installation successful!
EoM
else
cat << EoM
Ooops, ERROR ON INSTALLATION. If you cannot correct
the problem on your own, contact:

EoM
contact
exit 1
fi
exit 0
else
cat << EoM
Extraction of files successful!
EoM
fi
exit 0
# END OF SIS FILE