configure: don't check ./revision, it never exists

Stop checking the ./revision file for the git revision info, its never
created.
pull/10767/head
Jason Ish 2 years ago committed by Victor Julien
parent 4c16032f63
commit c00c2b116f

@ -2510,11 +2510,7 @@ return 0;
AM_CONDITIONAL([HAS_FUZZLDFLAGS], [test "x$has_sanitizefuzzer" = "xyes"]) AM_CONDITIONAL([HAS_FUZZLDFLAGS], [test "x$has_sanitizefuzzer" = "xyes"])
# get revision # get git revision and last commit date
if test -f ./revision; then
REVISION=`cat ./revision`
AC_DEFINE_UNQUOTED([REVISION],[${REVISION}],[Git revision])
else
AC_PATH_PROG(HAVE_GIT_CMD, git, "no") AC_PATH_PROG(HAVE_GIT_CMD, git, "no")
if test "$HAVE_GIT_CMD" != "no"; then if test "$HAVE_GIT_CMD" != "no"; then
if [ test -d .git ]; then if [ test -d .git ]; then
@ -2524,7 +2520,6 @@ return 0;
AC_DEFINE_UNQUOTED([REVISION],[${REVISION}],[Git revision]) AC_DEFINE_UNQUOTED([REVISION],[${REVISION}],[Git revision])
fi fi
fi fi
fi
# get MAJOR_MINOR version for embedding in configuration file. # get MAJOR_MINOR version for embedding in configuration file.
MAJOR_MINOR=`expr "${PACKAGE_VERSION}" : "\([[0-9]]\+\.[[0-9]]\+\).*"` MAJOR_MINOR=`expr "${PACKAGE_VERSION}" : "\([[0-9]]\+\.[[0-9]]\+\).*"`

Loading…
Cancel
Save