diff options
author | Stephane Bailliez <sbailliez@apache.org> | 2002-01-07 12:00:36 +0000 |
---|---|---|
committer | Stephane Bailliez <sbailliez@apache.org> | 2002-01-07 12:00:36 +0000 |
commit | e9e5c44401c2a2a6f42a02d5ee64bffba05b9030 (patch) | |
tree | 50f84f777236821cb0c6fbc8d7988883913b7d66 /build.sh | |
parent | eedb2957edb7e064c8b77530c27c91699768b44a (diff) | |
download | ant-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-x | build.sh | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |