changeset 47414:d4d6bd42a6f3

8188910: jib configure requires --src-dir for out fo tree builds, second attempt Reviewed-by: dholmes, tbell, ihse
author erikj
date Tue, 10 Oct 2017 15:20:10 +0200
parents 51b0b8d8fe56
children 00f9fe99736e
files bin/jib.sh
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/jib.sh	Tue Oct 10 13:33:39 2017 +0200
+++ b/bin/jib.sh	Tue Oct 10 15:20:10 2017 +0200
@@ -39,7 +39,7 @@
     jib_repository="jdk-virtual"
     jib_organization="jpg/infra/builddeps"
     jib_module="jib"
-    jib_revision="2.0-SNAPSHOT"
+    jib_revision="3.0-SNAPSHOT"
     jib_ext="jib.sh.gz"
 
     closed_script="${mydir}/../../closed/make/conf/jib-install.conf"
@@ -146,4 +146,9 @@
     install_jib
 fi
 
+# Provide a reasonable default for the --src-dir parameter if run out of tree
+if [ -z "${JIB_SRC_DIR}" ]; then
+    export JIB_SRC_DIR="${mydir}/../"
+fi
+
 ${installed_jib_script} "$@"