Browse Source

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
master
Stephane Bailliez 23 years ago
parent
commit
e9e5c44401
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      build.sh

+ 16
- 0
build.sh View File

@@ -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




Loading…
Cancel
Save