source: release-kits/shared/apache-ant-1.6.5/build.sh@ 14988

Last change on this file since 14988 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 1.0 KB
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.
7cygwin=false;
8darwin=false;
9case "`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 ;;
16esac
17
18REALANTHOME=$ANT_HOME
19if [ -z "$PWD" ]; then
20 ANT_HOME=./bootstrap
21else
22 ANT_HOME="$PWD"/bootstrap
23fi
24export ANT_HOME
25
26if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
27 /bin/sh ./bootstrap.sh
28fi
29
30if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
31 echo Bootstrap FAILED
32 exit
33fi
34
35if [ "$REALANTHOME" != "" ] ; then
36 if $cygwin; then
37 REALANTHOME=`cygpath --windows "$REALANTHOME"`
38 fi
39 ANT_INSTALL="-Dant.install=$REALANTHOME"
40else
41 ANT_INSTALL="-emacs"
42fi
43
44bootstrap/bin/ant -lib lib/optional "$ANT_INSTALL" $*
45
Note: See TracBrowser for help on using the repository browser.