diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2006-06-19 11:52:15 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2006-06-19 11:52:15 +0000 |
commit | adab52e289e243f984578fc8c1d404041eeb5ba4 (patch) | |
tree | 3bb285f371ee4ac0d8c24279a581ec959f0bae25 | |
parent | e0f22af441441d6ab5ea86a7cab7e2aff491ac66 (diff) | |
download | scala-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.
-rw-r--r-- | src/compiler/scala/tools/ant/templates/generic-unix.tmpl | 8 | ||||
-rw-r--r-- | src/compiler/scala/tools/ant/templates/tool-unix.tmpl | 6 |
2 files changed, 7 insertions, 7 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 diff --git a/src/compiler/scala/tools/ant/templates/tool-unix.tmpl b/src/compiler/scala/tools/ant/templates/tool-unix.tmpl index 1f879cb28a..041a0dd5da 100644 --- a/src/compiler/scala/tools/ant/templates/tool-unix.tmpl +++ b/src/compiler/scala/tools/ant/templates/tool-unix.tmpl @@ -34,9 +34,9 @@ SCALA_HOME=`cd "$SCALA_HOME"; pwd`; # 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" @@ -46,7 +46,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 |