From ad4759b46ab6492180c5abd7c164d94ad9125898 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 15 Apr 2015 16:01:25 +0200 Subject: use git versions, not git-svn versions --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 18965a0f7..20450390d 100644 --- a/configure.ac +++ b/configure.ac @@ -200,19 +200,19 @@ AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"]) # version info AC_PATH_PROG(gitcommand, git) AC_MSG_CHECKING(for source being under a VCS) -gitsvn_version= +git_version= AS_IF([test ! "X$gitcommand" = "X"], [ - gitsvn_version=$(cd $srcdir ; git log -1 2>/dev/null | grep "git-svn-id" | sed -e 's/.*@\([[0-9]]\+\) .*/\1/') + git_version=$(cd $srcdir ; git rev-list --full-history --all --abbrev-commit | head -n 1 2>/dev/null) ]) -AS_IF([test "X$gitsvn_version" = "X"], +AS_IF([test "X$git_version" = "X"], [ vcs_name="no" vcs_version="\"release\"" ], [ vcs_name="yes, git-svn" - vcs_version="\"svn-r$gitsvn_version\"" + vcs_version="\"git-$git_version\"" ]) AC_MSG_RESULT($vcs_name) -- cgit v1.2.3