1.1 --- a/configure Mon Apr 20 22:08:54 2009 +0000
1.2 +++ b/configure Mon Aug 03 22:47:53 2009 +0200
1.3 @@ -340,21 +340,13 @@
1.4 # If we can't get the revision number, use date
1.5 printf "Computing version string... "
1.6 case "${VERSION}" in
1.7 - *+svn|svn)
1.8 - REVISION="$( LC_ALL=C svnversion )"
1.9 + *+hg|hg)
1.10 + REVISION="$( hg id -n 2>/dev/null )"
1.11 case "${REVISION}" in
1.12 - exported)
1.13 + "")
1.14 VERSION="${VERSION}_unknown@$( date +%Y%m%d.%H%M%S )";;
1.15 *)
1.16 - URL="$( LC_ALL=C svn info 2>/dev/null \
1.17 - |egrep 'URL: ' \
1.18 - |cut -d ' ' -f 2- \
1.19 - )"
1.20 - ROOT="$( LC_ALL=C svn info 2>/dev/null \
1.21 - |"${grep}" '^Repository Root: ' \
1.22 - |cut -d ' ' -f 3- \
1.23 - )"
1.24 - VERSION="${VERSION}${URL#${ROOT}}@${REVISION}"
1.25 + VERSION="${VERSION}_$( hg id -b )@${REVISION%%+}_$( hg id -i )"
1.26 ;;
1.27 esac
1.28 # Arrange to have no / in the directory name, no need to create an