Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | # Copyright (c) 2000-2003 The Apache Software Foundation. All rights
|
---|
4 | # reserved.
|
---|
5 |
|
---|
6 | # OS specific support. $var _must_ be set to either true or false.
|
---|
7 | cygwin=false;
|
---|
8 | darwin=false;
|
---|
9 | case "`uname`" in
|
---|
10 | CYGWIN*) cygwin=true ;;
|
---|
11 | Darwin*) darwin=true
|
---|
12 | if [ -z "$JAVA_HOME" ] ; then
|
---|
13 | JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
|
---|
14 | fi
|
---|
15 | ;;
|
---|
16 | esac
|
---|
17 |
|
---|
18 | REALANTHOME=$ANT_HOME
|
---|
19 | if [ -z "$PWD" ]; then
|
---|
20 | ANT_HOME=./bootstrap
|
---|
21 | else
|
---|
22 | ANT_HOME="$PWD"/bootstrap
|
---|
23 | fi
|
---|
24 | export ANT_HOME
|
---|
25 |
|
---|
26 | if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
|
---|
27 | /bin/sh ./bootstrap.sh
|
---|
28 | fi
|
---|
29 |
|
---|
30 | if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
|
---|
31 | echo Bootstrap FAILED
|
---|
32 | exit
|
---|
33 | fi
|
---|
34 |
|
---|
35 | if [ "$REALANTHOME" != "" ] ; then
|
---|
36 | if $cygwin; then
|
---|
37 | REALANTHOME=`cygpath --windows "$REALANTHOME"`
|
---|
38 | fi
|
---|
39 | ANT_INSTALL="-Dant.install=$REALANTHOME"
|
---|
40 | else
|
---|
41 | ANT_INSTALL="-emacs"
|
---|
42 | fi
|
---|
43 |
|
---|
44 | bootstrap/bin/ant -lib lib/optional "$ANT_INSTALL" $*
|
---|
45 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.