summaryrefslogtreecommitdiff
path: root/ant-common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ant-common.sh')
-rwxr-xr-xant-common.sh19
1 files changed, 1 insertions, 18 deletions
diff --git a/ant-common.sh b/ant-common.sh
index 631134580b..df29b1865b 100755
--- a/ant-common.sh
+++ b/ant-common.sh
@@ -13,7 +13,6 @@ export ANT_OPTS='-Xmx256M'
##############################################################################
# Shell commands
-AWK=awk
CP=cp
ECHO=echo
RM='rm -f'
@@ -22,23 +21,7 @@ SED=sed
##############################################################################
# set user environment
-$AWK '/^$/ {next;} /^#/ {next;} {print "export " $1 $2 $3}' \
- build-nsc.properties > env.sh
-
+$ANT_CMD -Dplatform=unix -q -f setenv-nsc.xml
. env.sh
-# ------- don't change these, change build-nsc.properties instead
-
-function addJar() { # string -> void
- local jarfile="$1"; shift 1;
- local jarname="$1";
- if [ -f $jarfile ]; then
- CLASSPATH=$jarfile:$CLASSPATH;
- return 0;
- else
- $ECHO you supplied $jarfile for $jarname, but it does not exists;
- return -1;
- fi
-}
-
##############################################################################