# HG changeset patch # User "Yann E. MORIN" # Date 1249332473 -7200 # Node ID 0505b0d5cd63f04f21ca61e62d1f17cf41d2f708 # Parent 621dcbf2bf832228e2cdbf93a5363252d7881806 [configure] Use hg, instead of svn, to compute the version string Now we moved from Subversion to Mercurial, use the hg command to compute the version string. Manually backported from 1409:7264ce426be4 plus 1430:933eee133cbf as too much changes have been made to ./configure in the meantime. diff -r 621dcbf2bf83 -r 0505b0d5cd63 .version --- a/.version Tue May 19 16:13:34 2009 +0000 +++ b/.version Mon Aug 03 22:47:53 2009 +0200 @@ -1,1 +1,1 @@ -1.4.1+svn +1.4.1+hg diff -r 621dcbf2bf83 -r 0505b0d5cd63 configure --- a/configure Tue May 19 16:13:34 2009 +0000 +++ b/configure Mon Aug 03 22:47:53 2009 +0200 @@ -340,21 +340,13 @@ # If we can't get the revision number, use date printf "Computing version string... " case "${VERSION}" in - *+svn|svn) - REVISION="$( LC_ALL=C svnversion )" + *+hg|hg) + REVISION="$( hg id -n 2>/dev/null )" case "${REVISION}" in - exported) + "") VERSION="${VERSION}_unknown@$( date +%Y%m%d.%H%M%S )";; *) - URL="$( LC_ALL=C svn info 2>/dev/null \ - |egrep 'URL: ' \ - |cut -d ' ' -f 2- \ - )" - ROOT="$( LC_ALL=C svn info 2>/dev/null \ - |"${grep}" '^Repository Root: ' \ - |cut -d ' ' -f 3- \ - )" - VERSION="${VERSION}${URL#${ROOT}}@${REVISION}" + VERSION="${VERSION}_$( hg id -b )@${REVISION%%+}_$( hg id -i )" ;; esac # Arrange to have no / in the directory name, no need to create an