From 656070c3d575e5f26da6c0acbc77d78eff32a6aa Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Thu, 9 Aug 2001 02:59:57 +0000 Subject: [PATCH] Cygwin support in bootstrap.sh PR: 3014 Submitted by: tpv@spamcop.net (Tim Vernum) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269526 13f79535-47bb-0310-9956-ffa450edef68 --- bootstrap.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index a3957eecb..310b6979e 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,5 +1,11 @@ #!/bin/sh +# Make sure that the classpath & java_home are in Unix format before we use them +if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + # You will need to specify JAVA_HOME if compiling with 1.2 or later. if [ -n "$JAVA_HOME" ] ; then @@ -49,11 +55,6 @@ if [ ! -x "$JAVACMD" ] ; then exit fi -# More Cygwin support -if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - ANT_HOME=. export ANT_HOME @@ -97,7 +98,7 @@ mkdir -p bin echo ... Compiling Ant Classes -${JAVAC} -d ${CLASSDIR} ${TOOLS}/tar/*.java ${TOOLS}/zip/*.java \ +"${JAVAC}" -d ${CLASSDIR} ${TOOLS}/tar/*.java ${TOOLS}/zip/*.java \ ${TOOLS}/ant/util/regexp/RegexpMatcher.java \ ${TOOLS}/ant/util/regexp/RegexpMatcherFactory.java \ ${TOOLS}/ant/util/*.java ${TOOLS}/ant/types/*.java \ @@ -118,7 +119,7 @@ echo ... Building Ant Distribution cp -r ${CLASSDIR} build -${JAVACMD} -classpath ${CLASSPATH} -Dant.home=. org.apache.tools.ant.Main -emacs bootstrap +"${JAVACMD}" -classpath "${CLASSPATH}" -Dant.home=. org.apache.tools.ant.Main -emacs bootstrap echo ... Cleaning Up Build Directories