Git is assumed for the source with .git.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2017-07-18 14:12:20 +09:00
parent d12483c3c9
commit 10c5010141
2 changed files with 9 additions and 1 deletions

6
src/configure vendored
View File

@@ -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`