Add proper test for an installed version of git. Bail if git is not

found on path.
This commit is contained in:
Michael Rasmussen 2013-05-02 20:01:20 +02:00
parent 5809e36f18
commit fb56fc5bfc

View file

@ -12,6 +12,11 @@ BINARY_AGE=0
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
AC_CHECK_PROG([GIT], [git], [yes], [no], [$PATH])
if test \( "$GIT" = "no" \); then
AC_MSG_ERROR([*** git not found. See http://git-scm.com/])
fi
if test \( -d .git \); then
GIT_VERSION=`git describe --abbrev=6 --dirty --always`
else