Write svn_revision when getting the revision from git

Originally committed to SVN as r6297.
This commit is contained in:
Thomas Goyne 2012-01-14 18:46:38 +00:00
parent 3c6e28ec2e
commit a586e7e58f

View file

@ -163,6 +163,7 @@ AS_IF([test -d "$srcdir/.svn"], [
AC_MSG_RESULT([$SVN_REVISION from "$srcdir/svn_revision"])
], [test -d "$srcdir/../.git"], [
SVN_REVISION=[`git log | grep git-svn-id -m 1 | sed -E 's/.*@([0-9]+) .*/\1/'`]
`echo $SVN_REVISION > $srcdir/svn_revision`
AC_MSG_RESULT([$SVN_REVISION from git])
], [
AC_MSG_RESULT([not found])