#!/bin/sh # danq 7/13/92 simple jspc configuration script cat << EOF JSPC Configuration Script This script will set up a configuration file so that you can run make in the directories below this. EOF JSPC=${PWD} /bin/echo -n "path to the distribution directory [$JSPC] " read reply if [ "x$reply" != x ] ; then JSPC=$reply fi JSPCMAKE=$JSPC/include/simplemake OPENWIN_LIB=${OPENWINHOME-/usr/openwin}/lib /bin/echo -n "path to the Open Windows libraries: [$OPENWIN_LIB] " read reply if [ "x$reply" != x ] ; then OPENWIN_LIB=$reply fi OPENWIN_INCLUDE=${OPENWINHOME-/usr/openwin}/include /bin/echo -n "path to the Open Windows include files: [$OPENWIN_INCLUDE] " read reply if [ "x$reply" != x ] ; then OPENWIN_INCLUDE=$reply fi X11_LIB=/usr/lib/X11 /bin/echo -n "path to X11 library files [$X11_LIB] " read reply if [ "x$reply" != x ] ; then X11_LIB=$reply fi X11_INCLUDE=/usr/include/X11 /bin/echo -n "path to X11 include files [$X11_INCLUDE] " read reply if [ "x$reply" != x ] ; then X11_INCLUDE=$reply fi RANLIB=ranlib /bin/echo -n "Do you need to run ranlib on libraries? (y) " read reply case $reply in n|N|no|NO) RANLIB="ranlib" ;; esac for i in `(cd proto ; ls)` do cat << EOF > include/$i JSPC=$JSPC X11_INCLUDE=$X11_INCLUDE X11_LIB=$X11_LIB OPENWIN_INCLUDE=$OPENWIN_INCLUDE OPENWIN_LIB=$OPENWIN_LIB RANLIB=$RANLIB EOF cat proto/$i >> include/$i done cat << EOF In order to directly use the Makefiles in directories below this one, please set your environment variable JSPCMAKE like: setenv JSPCMAKE $JSPCMAKE This is not necessary for just running make from this directory. You may wish to add $JSPCBIN to your normal path environment variable: set path=(\$path $JSPC/bin) Finally, you may access man pages about many of the programs and routines by setting your MANPATH variable to include $JSPC/sw/man, eg setenv MANPATH /usr/man:$JSPC/man or by setting up an alias for man: alias jspcman man -M $JSPC/man EOF