mirror of https://github.com/odrling/Aegisub
Fix getting the revision from git with BSD sed
Originally committed to SVN as r6182.
This commit is contained in:
parent
cae10121ed
commit
0eeb1d18fc
|
@ -162,7 +162,7 @@ AS_IF([test -d "$srcdir/.svn"], [
|
||||||
SVN_REVISION=`cat $srcdir/svn_revision`
|
SVN_REVISION=`cat $srcdir/svn_revision`
|
||||||
AC_MSG_RESULT([$SVN_REVISION from "$srcdir/svn_revision"])
|
AC_MSG_RESULT([$SVN_REVISION from "$srcdir/svn_revision"])
|
||||||
], [test -d "$srcdir/../.git"], [
|
], [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([$SVN_REVISION from git])
|
||||||
], [
|
], [
|
||||||
AC_MSG_RESULT([not found])
|
AC_MSG_RESULT([not found])
|
||||||
|
|
Loading…
Reference in New Issue