Support no git situation.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2017-07-19 11:25:38 +09:00
parent ae76d66d53
commit 25d3f021c1
2 changed files with 9 additions and 5 deletions

View File

@@ -1,11 +1,13 @@
2017-07-19 NIIBE Yutaka <gniibe@fsij.org>
* src/configure (REVISION): Generate even when no git.
* polarssl/library/bignum.c (mpi_exp_mod): Call mpi_grow for X
after the initialization of RR.
2017-07-18 NIIBE Yutaka <gniibe@fsij.org>
* src/configure: Bark when not git.
* src/configure: Bark when no git available.
2017-07-18 Anthony Romano <anthony.romano@coreos.com>

10
src/configure vendored
View File

@@ -47,11 +47,13 @@ factory_reset=no
# Revision number
if test -e ../.git; then
if !type git >/dev/null 2>&1; then
echo 'No git available, please install git'
exit 1
if type git >/dev/null 2>&1; then
REVISION=`git describe --dirty="-modified"`
else
# echo 'No git available, please install git'
GIT_REVISION=$(sed -e 's/^\(.......\).*$/g\1/' ../.git/$(sed -e 's/^ref: //' ../.git/HEAD))
REVISION=`cat ../VERSION`-$GIT_REVISION
fi
REVISION=`git describe --dirty="-modified"`
else
REVISION=`cat ../VERSION`
fi