configure
changeset 1409 7264ce426be4
parent 1347 93b2bdb78e61
child 1411 8dbd9e0dc1d9
     1.1 --- a/configure	Wed May 20 20:20:51 2009 +0000
     1.2 +++ b/configure	Wed Jun 17 10:46:28 2009 +0200
     1.3 @@ -364,23 +364,15 @@
     1.4  # If this version is a svn snapshot, try to get the revision number
     1.5  # If we can't get the revision number, use date
     1.6  case "${VERSION}" in
     1.7 -    *+svn|svn)
     1.8 -        has_or_abort prog=svnversion
     1.9 +    *+hg|hg)
    1.10 +        has_or_abort prog=hg
    1.11          printf "Computing version string... "
    1.12 -        REVISION="$( LC_ALL=C svnversion )"
    1.13 +        REVISION="$( hg id -n 2>/dev/null )"
    1.14          case "${REVISION}" in
    1.15 -            exported)
    1.16 +            "")
    1.17                  VERSION="${VERSION}_unknown@$( date +%Y%m%d.%H%M%S )";;
    1.18              *)
    1.19 -                URL="$( LC_ALL=C svn info 2>/dev/null   \
    1.20 -                                 |egrep 'URL: '         \
    1.21 -                                 |cut -d ' ' -f 2-      \
    1.22 -                      )"
    1.23 -                ROOT="$( LC_ALL=C svn info 2>/dev/null      \
    1.24 -                         |"${grep}" '^Repository Root: '    \
    1.25 -                         |cut -d ' ' -f 3-                  \
    1.26 -                       )"
    1.27 -                VERSION="${VERSION}${URL#${ROOT}}@${REVISION}"
    1.28 +                VERSION="${VERSION}:$( hg id -b )@${REVISION%%+}:$( hg id -i )"
    1.29                  ;;
    1.30          esac
    1.31          # Arrange to have no / in the directory name, no need to create an