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'])