From 12ad2ad3893541986e28eb53bb8418fe94eb28d3 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Sun, 16 Feb 2003 01:12:14 +0000 Subject: 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 --- bootstrap.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bootstrap.sh') 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 -- cgit v1.2.1