#!/usr/local/bin/bash ## Save the current PATH only once in OLD_PATH_VAR and use OLD_PATH_VAR ## instead of PATH for the first PATH extension. If you extend the PATH ## environment variable _after_ you have executed setvars, the next ## "setvars" invocation will overwrite these additions with OLD_PATH_VAR. ## Similar remarks with respect to CLASSPATH. Saving PATH and CLASSPATH ## the first time allows you to invoke file "setvars" several times ## without leaving the current shell : if [ -z "$OLD_PATH_VAR" ] then OLD_PATH_VAR=$PATH export OLD_PATH_VAR fi if [ -z "$OLD_CLASSPATH_VAR" ] then OLD_CLASSPATH_VAR=$CLASSPATH export OLD_CLASSPATH_VAR fi ## DLP_ROOT=/dlp1r22 ## or (to run the Solaris examples) : DLP_ROOT=/home/dejavu/dlp/dlp1r22 export DLP_ROOT ## dlp, dlpc commands : PATH=$DLP_ROOT/bin:$OLD_PATH_VAR # first PATH ## remove the next "jikes" lines in case you prefer ## SUN's javac compiler for compiling Java programs: ## The jikes executable is in directory : JIKES_EXEC=/home/dejavu/jikes-1.06 ## or ..../bin export JIKES_EXEC PATH=$JIKES_EXEC:$PATH ## SWI-Prolog executable in : SWI_EXEC=/home/dejavu/pl/pl-3.3.10/bin export SWI_EXEC PATH=$SWI_EXEC:$PATH ## where to find java, javac, etc. : JAVA_ROOT=/usr/local/java/jdk1.2.2 export JAVA_ROOT PATH=$JAVA_ROOT/bin:$PATH export PATH ## next 3 lines are only required for special purpose Java ## interpreters (or "oldjava") that use the Java 1.X.Y ## libraries and the jikes compiler : CLASSPATH=$JAVA_ROOT/src.jar:$OLD_CLASSPATH_VAR # first CLASSPATH CLASSPATH=$JAVA_ROOT/jre/lib/i18n.jar:$CLASSPATH CLASSPATH=$JAVA_ROOT/jre/lib/rt.jar:$CLASSPATH ## (Precompiled) DLP + examples class files: # CLASSPATH=$DLP_ROOT/classes:$CLASSPATH CLASSPATH=$DLP_ROOT/classes/dlpsys.jar:$CLASSPATH ## to run the examples: # CLASSPATH=$DLP_ROOT/examples/classes:$CLASSPATH ## In case you would like to write and compile DLP programs in ## directory MY_PROG_DIR, remove the # comment character ## and adjust one of the following lines : # CLASSPATH=MY_PROG_DIR/classes:$CLASSPATH ## or, e.g. : CLASSPATH=`pwd`/classes:$CLASSPATH export CLASSPATH ## classes for jikes: JIKESPATH=$CLASSPATH export JIKESPATH echo DLP_ROOT $DLP_ROOT echo CLASSPATH $CLASSPATH