Fix getting the revision from git with BSD sed

Originally committed to SVN as r6182.
This commit is contained in:
Thomas Goyne 2011-12-28 21:27:16 +00:00
parent cae10121ed
commit 0eeb1d18fc
1 changed files with 1 additions and 1 deletions

View File

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