# HG changeset patch # User Yann E. MORIN # Date 1245228388 -7200 # Node ID 7264ce426be4be89690a81ecc9764e2e515ea483 # Parent 515580cad6317fa168e53099fce3a2e3e128cee2 [configure] Use hg to compute the version string Now that we have migrated to hg from svn, it does not make sense to keep using svn tools to compute the version string, so switch to using mercurial tools (that are much more flexible, BTW). diff -r 515580cad631 -r 7264ce426be4 .version --- a/.version Sun Jun 14 21:44:33 2009 +0200 +++ b/.version Wed Jun 17 10:46:28 2009 +0200 @@ -1,1 +1,1 @@ -svn +hg diff -r 515580cad631 -r 7264ce426be4 configure --- a/configure Sun Jun 14 21:44:33 2009 +0200 +++ b/configure Wed Jun 17 10:46:28 2009 +0200 @@ -364,23 +364,15 @@ # If this version is a svn snapshot, try to get the revision number # If we can't get the revision number, use date case "${VERSION}" in - *+svn|svn) - has_or_abort prog=svnversion + *+hg|hg) + has_or_abort prog=hg printf "Computing version string... " - REVISION="$( LC_ALL=C svnversion )" + 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