diff options
Diffstat (limited to 'ant-build-nsc.sh')
-rwxr-xr-x | ant-build-nsc.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ant-build-nsc.sh b/ant-build-nsc.sh index ef273d6a9f..b0aeb854f6 100755 --- a/ant-build-nsc.sh +++ b/ant-build-nsc.sh @@ -10,11 +10,23 @@ # ant build CLASSPATH=$nsc_fjbg_jar:$nsc_scala_jar:$nsc_tools_jar:$nsc_jaco_jar +PLATFORM=unix + +# For Cygwin, switch paths to appropriate format before running ant +if $cygwin; then + if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then + format=mixed + else + format=windows + fi + CLASSPATH=`cygpath --path --$format "$CLASSPATH"` + PLATFORM=win +fi # for debugging your classpath #echo CLASSPATH=$CLASSPATH -CLASSPATH="$CLASSPATH" $ANT_CMD -Dplatform=unix -f "$ANT_BUILDFILE" $* +CLASSPATH="$CLASSPATH" $ANT_CMD -Dplatform=$PLATFORM -f "$ANT_BUILDFILE" $* $RM "$ANT_BUILDFILE" ############################################################################## |