allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc) (06/11/89)
Posting-number: Volume 7, Issue 21 Submitted-by: fox@marlow.UUCP (Paul Fox) Archive-name: crisp1.9/part01 This is release 1.9 of the CRISP editor. The following file is the plain-text version of the CRISP.Inst shell script. Please save this file and the other 32 parts to form the release for 1.9. When you have all pieces copy them to a spare directory and type: sh CRISP.Inst this should unpack all the parts and build the system from scratch. If possible, run this as root, or change the CRISP.Inst below so that the installation will go to somewhere other than /usr/local/crisp. You will find a ChangeLog somewhere in this lot to tell you what has changed since the last release. Please let me know of any installation problems or bugs so I can amend the master sources. When all has been compiled, type: cr -mmakeman -mexit to produce a copy of the manual. You may need to edit the top of the makeman.m file to set up your options, eg for -me, -mm or -ms macros, etc. Paul Fox 2 June 1989 ---------Cut here-------------------------------- #!/bin/sh # This is the file CRISP.Inst. ########################################################################## # Patchable variables go here. Please change to whatever you feel # appropriate. ########################################################################## bin=/usr/local/bin # Directory for binaries. inst=/usr/local/crisp # Directory for macros and help texts ########################################################################## # Some drudgery before we get started. ########################################################################## version=1.9 ########################################################################## # Now unpack any .tar files ########################################################################## for i in *.Z do if [ -f $i ]; then echo Uncompressing $i uncompress $i fi done for i in *-sh* do if [ -f $i ]; then sh $i rm $i fi done ########################################################################## # Try and deduce what system we are on. # If you are going to edit this because you are trying to make # it work for your own system, then you can delete the following # tests, and just set the m-machine.h and s-machine files up. ########################################################################## rm -f m-machine.h s-machine if [ -f /vmunix ]; then if [ -f /lib/ld.so ]; then DESCR="SunOS 4.x" ln m-sun3os4.h m-machine.h else ln m-sun3os3.h m-machine.h DESCR="SunOS 3.x" fi ln s-bsd s-machine fi if [ -d /vrm ]; then DESCR="RT-PC Running AIX" ln m-aix.h m-machine.h ln s-sysv s-machine fi if [ -f /xenix ]; then DESCR="Xenix 386/286" ln m-xenix.h m-machine.h ln s-xenix s-machine fi if [ -f /system5 ]; then DESCR="Microport Unix V.2/286" fi if [ -f /etc/atconf/systems/linkorder ]; then DESCR="Interactive Systems Unix V.3" ln m-sysv.h m-machine.h ln s-sysv s-machine fi if [ -f /unix ]; then DESCR="Microport Unix V.3/386" ln m-sysv.h m-machine.h ln s-sysv s-machine fi echo "" echo "Installation script for CRISP v$version" echo "" echo "If this script completes successfully, it will annihilate the $inst" echo "directory. If you have any personal macros in this directory tree" echo "abort the installation now, and save your files." echo "" echo "" mkdir dirlib doc foxlib help lib llist obj splay src utils >/dev/null 2>&1 mkdir help/crisp >/dev/null 2>&1 echo "" echo "I think the system you are installing CRISP on is: " echo "" echo " $DESCR" echo "" echo "Press <CR> if this is correct, or hack this script if wrong: " read ans ########################################################################## # Now create major crisp object files. ########################################################################## make echo "" echo "Removing $inst directory..." cp cm cr $bin rm -rf $inst ; mkdir $inst mkdir $inst/macros $inst/macros/kbd $inst/macros/tty >/dev/null 2>&1 echo "Compiling macro sources..." make cmac echo "Installing Help files..." make hmac echo Installation successfully completed. -- ===================== Reuters Ltd PLC, Tel: +44 628 891313 x. 212 Westthorpe House, UUCP: fox%marlow.uucp@idec.stc.co.uk Little Marlow, Bucks, England SL7 3RQ