summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/ant/templates/generic-unix.tmpl
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2006-06-19 11:52:15 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2006-06-19 11:52:15 +0000
commitadab52e289e243f984578fc8c1d404041eeb5ba4 (patch)
tree3bb285f371ee4ac0d8c24279a581ec959f0bae25 /src/compiler/scala/tools/ant/templates/generic-unix.tmpl
parente0f22af441441d6ab5ea86a7cab7e2aff491ac66 (diff)
downloadscala-adab52e289e243f984578fc8c1d404041eeb5ba4.tar.gz
scala-adab52e289e243f984578fc8c1d404041eeb5ba4.tar.bz2
scala-adab52e289e243f984578fc8c1d404041eeb5ba4.zip
Runner scripts should now be compatible with So...
Runner scripts should now be compatible with Solaris.
Diffstat (limited to 'src/compiler/scala/tools/ant/templates/generic-unix.tmpl')
-rw-r--r--src/compiler/scala/tools/ant/templates/generic-unix.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/ant/templates/generic-unix.tmpl b/src/compiler/scala/tools/ant/templates/generic-unix.tmpl
index 815ba4568e..bfc51c94a6 100644
--- a/src/compiler/scala/tools/ant/templates/generic-unix.tmpl
+++ b/src/compiler/scala/tools/ant/templates/generic-unix.tmpl
@@ -49,7 +49,7 @@ USER_ARGS=""
# Step 1: Class-path set to default value "."
USER_CLASSPATH="."
# Step 2: Class-path overridden to value of "CLASSPATH" environment variable
-if [ "$CLASSPATH" != "" ] ; then
+if [ -n "$CLASSPATH" ] ; then
USER_CLASSPATH="$CLASSPATH"
fi
# Step 3: Class-path overridden to value of "-classpath" script parameter
@@ -70,9 +70,9 @@ done
# Constructing the extension classpath
EXTENSION_CLASSPATH="@extclasspath@"
-if [ "$EXTENSION_CLASSPATH" = "" ] ; then
+if [ -z "$EXTENSION_CLASSPATH" ] ; then
for ext in `ls -L "$SCALA_HOME"/lib/*` ; do
- if [ "$EXTENSION_CLASSPATH" = "" ] ; then
+ if [ -z "$EXTENSION_CLASSPATH" ] ; then
EXTENSION_CLASSPATH="$ext"
else
EXTENSION_CLASSPATH="$EXTENSION_CLASSPATH:$ext"
@@ -82,7 +82,7 @@ fi
# Setting the boot class-path to be the standard library (either as a JAR or a folder)
BOOT_CLASSPATH="@bootclasspath@"
-if [ "$BOOT_CLASSPATH" = "" ] ; then
+if [ -z "$BOOT_CLASSPATH" ] ; then
if [ -f "$SCALA_HOME/lib/scala-library.jar" ] ; then
BOOT_CLASSPATH="$SCALA_HOME/lib/scala-library.jar"
elif [ -d "$SCALA_HOME/lib/library" ] ; then