summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorStephane Bailliez <sbailliez@apache.org>2002-01-07 12:00:36 +0000
committerStephane Bailliez <sbailliez@apache.org>2002-01-07 12:00:36 +0000
commite9e5c44401c2a2a6f42a02d5ee64bffba05b9030 (patch)
tree50f84f777236821cb0c6fbc8d7988883913b7d66 /build.sh
parenteedb2957edb7e064c8b77530c27c91699768b44a (diff)
downloadant-e9e5c44401c2a2a6f42a02d5ee64bffba05b9030.tar.gz
Make sure that it works with Cygwin.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270608 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 866cd71f5..817cda580 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,10 @@
#!/bin/sh
+cygwin=false;
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+esac
+
REALANTHOME=$ANT_HOME
ANT_HOME=bootstrap
export ANT_HOME
@@ -23,7 +28,18 @@ do
fi
done
+# make sure the classpath is in unix format
+if $cygwin ; then
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
CLASSPATH=$LOCALCLASSPATH:$CLASSPATH
+
+# switch back to Windows format
+if $cygwin ; then
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+fi
+
export CLASSPATH