2000-01-13 10:42:41 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2002-01-10 14:18:42 +00:00
|
|
|
# Copyright (c) 2000-2002 The Apache Software Foundation. All rights
|
|
|
|
# reserved.
|
|
|
|
|
2002-01-07 12:00:36 +00:00
|
|
|
cygwin=false;
|
|
|
|
case "`uname`" in
|
|
|
|
CYGWIN*) cygwin=true ;;
|
|
|
|
esac
|
|
|
|
|
2001-01-30 15:08:30 +00:00
|
|
|
REALANTHOME=$ANT_HOME
|
2001-02-02 04:58:54 +00:00
|
|
|
ANT_HOME=bootstrap
|
2001-01-30 15:08:30 +00:00
|
|
|
export ANT_HOME
|
2001-01-23 05:10:39 +00:00
|
|
|
|
2001-01-31 09:42:04 +00:00
|
|
|
if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
|
2001-01-31 06:15:03 +00:00
|
|
|
/bin/sh ./bootstrap.sh
|
2001-01-30 15:08:30 +00:00
|
|
|
fi
|
2000-07-01 23:33:54 +00:00
|
|
|
|
2001-08-06 10:24:03 +00:00
|
|
|
if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
|
|
|
|
echo Bootstrap FAILED
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2002-06-01 12:26:43 +00:00
|
|
|
LOCALCLASSPATH=lib/xercesImpl.jar:lib/xml-apis.jar:bootstrap/lib/ant.jar
|
2001-02-03 14:23:47 +00:00
|
|
|
# add in the dependency .jar files
|
|
|
|
DIRLIBS=lib/optional/*.jar
|
|
|
|
for i in ${DIRLIBS}
|
|
|
|
do
|
|
|
|
if [ "$i" != "${DIRLIBS}" ] ; then
|
|
|
|
LOCALCLASSPATH=$LOCALCLASSPATH:"$i"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2002-01-07 12:00:36 +00:00
|
|
|
# make sure the classpath is in unix format
|
|
|
|
if $cygwin ; then
|
|
|
|
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
|
|
|
fi
|
|
|
|
|
2001-02-03 14:23:47 +00:00
|
|
|
CLASSPATH=$LOCALCLASSPATH:$CLASSPATH
|
2002-01-07 12:00:36 +00:00
|
|
|
|
|
|
|
# switch back to Windows format
|
|
|
|
if $cygwin ; then
|
|
|
|
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
|
|
|
fi
|
|
|
|
|
2001-02-02 04:58:54 +00:00
|
|
|
export CLASSPATH
|
|
|
|
|
2001-02-03 14:23:47 +00:00
|
|
|
|
2001-01-30 15:08:30 +00:00
|
|
|
if [ "$REALANTHOME" != "" ] ; then
|
2001-01-31 06:15:03 +00:00
|
|
|
ANT_INSTALL="-Dant.install=$REALANTHOME"
|
2001-01-23 05:10:39 +00:00
|
|
|
fi
|
|
|
|
|
2001-02-27 02:16:06 +00:00
|
|
|
bootstrap/bin/ant -emacs $ANT_INSTALL $*
|
2001-01-23 14:07:13 +00:00
|
|
|
|