#!/bin/ksh # # Installs SOLVE and resolve # JB 3-May-2000, TT 29-July-2000; 19-Oct-2000; 08-Mar-2001 # # Edit these environmental variables to reflect your taste in installation # The path names for each directory must begin with a slash "/" or this won't work: # export SOLVEBINDIR=/usr/local/bin # binaries go here export SOLVELIBDIR=/usr/local/lib/solve # libs go here export RESOLVELIBDIR=/usr/local/lib/resolve # symop.lib goes here too just to maintain # backward compatibility with old # resolve scripts browser=netscape # path to your preferred browser # # Usually you shouldn't edit below here # ##################################################################################### ##################################################################################### # echo " " echo "Installing SOLVE and resolve " echo " " echo "Installing SOLVE and resolve binaries in ${SOLVEBINDIR}." # # test to make sure directory exists! # if ! test -r ${SOLVEBINDIR} ; \ then mkdir ${SOLVEBINDIR} ; \ fi # Now test to make sure directory was created! # if ! test -r ${SOLVEBINDIR} ; \ then echo " "; \ echo "Sorry, could not create the directory " ${SOLVEBINDIR} ; \ echo "Please create it, then try again!" ; \ echo " "; \ exit; \ fi # cd bin tar cf - . | (cd ${SOLVEBINDIR} ; tar -xof - ) cd .. echo "Installing SOLVE and resolve library files in ${SOLVELIBDIR}." # # test to make sure directory exists! # if ! test -r ${SOLVELIBDIR} ; \ then mkdir ${SOLVELIBDIR} ; \ fi # # Now test to make sure directory was created! # if ! test -r ${SOLVELIBDIR} ; \ then echo " " ; \ echo "Sorry, could not create the directory " ${SOLVELIBDIR} ; \ echo "Please create it, then try again !" ; \ echo " " ; \ exit ; \ fi # cd lib tar cf - . | (cd ${SOLVELIBDIR} ; tar -xof -) cd .. echo "Installing symop.lib file in ${RESOLVELIBDIR}." # # test to make sure directory exists! # if ! test -r ${RESOLVELIBDIR} ; \ then mkdir ${RESOLVELIBDIR} ; \ fi # # Now test to make sure directory was created! # if ! test -r ${RESOLVELIBDIR} ; \ then echo " " ; \ echo "Sorry, could not create the directory " ${RESOLVELIBDIR} ; \ echo "Please create it, then try again !" ; \ echo " " ; \ exit ; \ fi # cd lib tar cf - symop.lib | (cd ${RESOLVELIBDIR} ; tar -xof -) cd .. echo "Creating resolvehelp script in ${SOLVEBINDIR}" cat > ${SOLVEBINDIR}/resolvehelp < ${SOLVEBINDIR}/solvehelp <