summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/ant/templates/tool-unix.tmpl
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2006-03-30 12:17:55 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2006-03-30 12:17:55 +0000
commited3fdfcb39a5269ee583ec63a1b3b17f85b63863 (patch)
treec20a26019bb51760f9dfbce2ee37ebf55a6b0100 /src/compiler/scala/tools/ant/templates/tool-unix.tmpl
parenta315aa92b527ad4a6e24d2fb896a960672b7d673 (diff)
downloadscala-ed3fdfcb39a5269ee583ec63a1b3b17f85b63863.tar.gz
scala-ed3fdfcb39a5269ee583ec63a1b3b17f85b63863.tar.bz2
scala-ed3fdfcb39a5269ee583ec63a1b3b17f85b63863.zip
Updated UNIX script templates to be Posix Shell...
Updated UNIX script templates to be Posix Shell (sh) compatible.
Diffstat (limited to 'src/compiler/scala/tools/ant/templates/tool-unix.tmpl')
-rw-r--r--src/compiler/scala/tools/ant/templates/tool-unix.tmpl15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/compiler/scala/tools/ant/templates/tool-unix.tmpl b/src/compiler/scala/tools/ant/templates/tool-unix.tmpl
index 0af1990cff..c6693fe1ec 100644
--- a/src/compiler/scala/tools/ant/templates/tool-unix.tmpl
+++ b/src/compiler/scala/tools/ant/templates/tool-unix.tmpl
@@ -32,21 +32,24 @@ SCALA_HOME=`dirname "$SOURCE"`/..;
SCALA_HOME=`cd "$SCALA_HOME"; pwd`;
EXTENSION_CLASSPATH="@extclasspath@"
-if [ "$EXTENSION_CLASSPATH" == "" ] ; then
+if [ "$EXTENSION_CLASSPATH" = "" ] ; then
for jar in `ls "$SCALA_HOME"/lib/*.jar` ; do
- EXTENSION_CLASSPATH="$EXTENSION_CLASSPATH:$jar"
+ if [ "$EXTENSION_CLASSPATH" = "" ] ; then
+ EXTENSION_CLASSPATH="$jar"
+ else
+ EXTENSION_CLASSPATH="$EXTENSION_CLASSPATH:$jar"
+ fi
done
- EXTENSION_CLASSPATH=${EXTENSION_CLASSPATH:1}
fi
BOOT_CLASSPATH="@bootclasspath@"
-if [[ "$BOOT_CLASSPATH" == "" && -f "$SCALA_HOME/lib/scala-library.jar" ]] ; then
+if [ "$BOOT_CLASSPATH" = "" ] && [ -f "$SCALA_HOME/lib/scala-library.jar" ] ; then
BOOT_CLASSPATH="$SCALA_HOME/lib/scala-library.jar"
fi
MYCLASSPATH="$EXTENSION_CLASSPATH"
if [ "$BOOT_CLASSPATH" != "" ] ; then
- if [ "$MYCLASSPATH" == "" ] ; then
+ if [ "$MYCLASSPATH" = "" ] ; then
MYCLASSPATH="$BOOT_CLASSPATH"
else
MYCLASSPATH="$BOOT_CLASSPATH:$MYCLASSPATH"
@@ -54,7 +57,7 @@ if [ "$BOOT_CLASSPATH" != "" ] ; then
fi
for flag in "$@@" ; do
- if [ "$flag" == '-version' ] ; then
+ if [ "$flag" = '-version' ] ; then
echo "@name@ version @version@ -- @copyright@"
exit 0
fi