From adab52e289e243f984578fc8c1d404041eeb5ba4 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Mon, 19 Jun 2006 11:52:15 +0000 Subject: Runner scripts should now be compatible with So... Runner scripts should now be compatible with Solaris. --- src/compiler/scala/tools/ant/templates/generic-unix.tmpl | 8 ++++---- src/compiler/scala/tools/ant/templates/tool-unix.tmpl | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') 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 -- cgit v1.2.3