use git for configure revision
This commit is contained in:
parent
2120a13869
commit
3f7bc23c6c
10
configure.ac
10
configure.ac
|
@ -557,10 +557,10 @@ AC_SUBST(PYTHON_INSTALL_PARAMS)
|
|||
AC_SUBST(COMPILETIME_OPTIONS)
|
||||
|
||||
|
||||
# Try to guess real svn revision if any, fallback to hardcoded otherwise
|
||||
SVN_REVISION=`svn info 2>/dev/null | sed -n -e '/^URL\:.*libtorrent.svn.sourceforge.net/,$!d;s,^Revision\: \([[0-9]]*\)$,\1,p'`
|
||||
AS_IF([test -z "$SVN_REVISION"],
|
||||
[SVN_REVISION=`sed -n -e 's/^#define LIBTORRENT_REVISION \"\$Rev\: \([0-9]*\) \$\" $/\1/p' include/libtorrent/version.hpp`])
|
||||
# Try to guess real git revision if any, fallback to hardcoded otherwise
|
||||
GIT_REVISION=`git log -1 --format=format:%h 2>/dev/null`
|
||||
AS_IF([test -z "$GIT_REVISION"],
|
||||
[GIT_REVISION=`sed -n -e "s/^#define LIBTORRENT_REVISION \"\([0-9a-z]*\)\"$/\1/p" $(dirname $0)/include/libtorrent/version.hpp`])
|
||||
|
||||
|
||||
###############################################################################
|
||||
|
@ -603,7 +603,7 @@ cat > config.report << END
|
|||
Package:
|
||||
name: ${PACKAGE_NAME}
|
||||
version: ${PACKAGE_VERSION}
|
||||
svn revision: ${SVN_REVISION}
|
||||
git revision: ${GIT_REVISION}
|
||||
|
||||
Build environment:
|
||||
build system: ${build}
|
||||
|
|
Loading…
Reference in New Issue