From b7cd695cd651aab3308d15a07ff69d39502c6e24 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 28 Dec 2011 01:22:49 +0000 Subject: [PATCH] Add support for getting the revision number from git Originally committed to SVN as r6174. --- aegisub/configure.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aegisub/configure.in b/aegisub/configure.in index e1ac47048..afafce0fa 100644 --- a/aegisub/configure.in +++ b/aegisub/configure.in @@ -161,6 +161,9 @@ AS_IF([test -d "$srcdir/.svn"], [ ], [test -f "$srcdir/svn_revision"], [ SVN_REVISION=`cat $srcdir/svn_revision` AC_MSG_RESULT([$SVN_REVISION from "$srcdir/svn_revision"]) +], [test -d "$srcdir/../.git"], [ + SVN_REVISION=[`git log | grep git-svn-id -m 1 | sed 's/.*@\([0-9]\+\) .*/\1/'`] + AC_MSG_RESULT([$SVN_REVISION from git]) ], [ AC_MSG_RESULT([not found]) AC_MSG_FAILURE([unable to get SVN Revision from $srcdir/svn_revision or 'svnversion $srcdir'])