corrected EXT_CLASSPATH

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@14143 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
michelou 2008-02-26 16:27:44 +00:00
parent 708ea3e486
commit 2283360c99
1 changed files with 16 additions and 2 deletions

View File

@ -41,9 +41,23 @@ fi
EXT_CLASSPATH=""
if [ -z "$EXT_CLASSPATH" ] ; then
if [ -f "$SCALA_HOME/lib/scala-partest.jar" ] ; then
EXT_CLASSPATH="$SCALA_HOME/lib/scala-partest.jar"
for lib in `echo "scala-partest scala-library scala-compiler"`; do
ext="$SCALA_HOME/lib/$lib.jar"
if [ -z "$EXT_CLASSPATH" ] ; then
EXT_CLASSPATH="$ext"
else
EXT_CLASSPATH="$EXT_CLASSPATH:$ext"
fi
done
elif [ -d "$SCALA_HOME/build/quick/lib/partest" ] ; then
EXT_CLASSPATH="$SCALA_HOME/build/quick/lib/partest"
for lib in `echo "partest library compiler"`; do
ext="$SCALA_HOME/build/quick/lib/$lib"
if [ -z "$EXT_CLASSPATH" ] ; then
EXT_CLASSPATH="$ext"
else
EXT_CLASSPATH="$EXT_CLASSPATH:$ext"
fi
done
fi
fi