Skip to content

Commit

Permalink
Make sure that it works with Cygwin.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270608 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
sbailliez committed Jan 7, 2002
1 parent 848a35e commit c458be5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/sh

cygwin=false;
case "`uname`" in
CYGWIN*) cygwin=true ;;
esac

REALANTHOME=$ANT_HOME
ANT_HOME=bootstrap
export ANT_HOME
Expand All @@ -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


Expand Down

0 comments on commit c458be5

Please sign in to comment.