Git is assumed for the source with .git.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2017-07-18 NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
* src/configure: Bark when not git.
|
||||
|
||||
2017-07-18 Anthony Romano <anthony.romano@coreos.com>
|
||||
|
||||
* docker: New.
|
||||
|
||||
6
src/configure
vendored
6
src/configure
vendored
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user