You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@toree.apache.org by ch...@apache.org on 2017/02/15 19:59:11 UTC

incubator-toree git commit: Added default COMMIT field for Makefile

Repository: incubator-toree
Updated Branches:
  refs/heads/0.1.x 575f7675e -> 1ded00d56


Added default COMMIT field for Makefile


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/1ded00d5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/1ded00d5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/1ded00d5

Branch: refs/heads/0.1.x
Commit: 1ded00d569d997685b3e72c67f2c90494613067e
Parents: 575f767
Author: Chip Senkbeil <ch...@gmail.com>
Authored: Wed Feb 15 13:59:08 2017 -0600
Committer: Chip Senkbeil <ch...@gmail.com>
Committed: Wed Feb 15 13:59:08 2017 -0600

----------------------------------------------------------------------
 Makefile | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/1ded00d5/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 238440f..46c4b0c 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,14 @@
 
 BASE_VERSION=0.1.0
 VERSION=$(BASE_VERSION)-incubating
-COMMIT=$(shell git rev-parse --short=12 --verify HEAD)
+
+# Grab the commit id, or provide a default so we can continue
+COMMIT=$(shell git rev-parse --short=12 --verify HEAD 2> /dev/null)
+ifeq (,$(COMMIT))
+$(info WARN: Pure source repository without Git, so using default commit id!)
+COMMIT="000000000000"
+endif
+
 ifeq (, $(findstring dev, $(VERSION)))
 IS_SNAPSHOT?=false
 else
@@ -31,7 +38,7 @@ SBT=sbt/sbt
 APACHE_SPARK_VERSION?=1.6.1
 IMAGE?=jupyter/pyspark-notebook:8dfd60b729bf
 EXAMPLE_IMAGE?=apache/toree-examples
-GPG?=/usr/local/bin/gpg
+GPG?=$(shell which gpg)
 GPG_PASSWORD?=
 BINDER_IMAGE?=apache/toree-binder
 DOCKER_WORKDIR?=/srv/toree