From 10c5010141e26348237ba4b6175315fdee86cc8c Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 18 Jul 2017 14:12:20 +0900 Subject: [PATCH] Git is assumed for the source with .git. Signed-off-by: NIIBE Yutaka --- ChangeLog | 4 ++++ src/configure | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2b4f048..bd238dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-07-18 NIIBE Yutaka + + * src/configure: Bark when not git. + 2017-07-18 Anthony Romano * docker: New. diff --git a/src/configure b/src/configure index f0d471b..3446eb0 100755 --- a/src/configure +++ b/src/configure @@ -46,7 +46,11 @@ hid_card_change=no factory_reset=no # Revision number -if which git >/dev/null 2>&1 && test -e ../.git; then +if test -e ../.git; then + if !type git >/dev/null 2>&1; then + echo 'No git available, please install git' + exit 1 + fi REVISION=`git describe --dirty="-modified"` else REVISION=`cat ../VERSION`