summaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorConor MacNeill <conor@apache.org>2003-02-16 01:12:14 +0000
committerConor MacNeill <conor@apache.org>2003-02-16 01:12:14 +0000
commit12ad2ad3893541986e28eb53bb8418fe94eb28d3 (patch)
tree581fc1b31fdad56aa4e76b7a196abe117be37903 /bootstrap.sh
parentcf98ab8ba17ee251b770f3a79b6db8ed5a6fbb5b (diff)
downloadant-12ad2ad3893541986e28eb53bb8418fe94eb28d3.tar.gz
Set JAVA_HOME for MacOSX users in bootstrap.sh and build.sh
PR: 17100 Submitted by: Jesse Stockall git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274072 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index b0deffeef..e800eb55f 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,12 +1,18 @@
#!/bin/sh
-# Copyright (c) 2000-2002 The Apache Software Foundation. All rights
+# Copyright (c) 2000-2003 The Apache Software Foundation. All rights
# reserved.
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
+darwin=false;
case "`uname`" in
CYGWIN*) cygwin=true ;;
+ Darwin*) darwin=true
+ if [ -z "$JAVA_HOME" ] ; then
+ JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+ fi
+ ;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched