summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-08-03 20:47:53 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-08-03 20:47:53 (GMT)
commite76e47b650ce65ceeb13181b7b56acd39eae95bb (patch)
tree456b3c5d078fdffc961b37440119febd32dc986d /configure
parent6841b1f9ec3722ceeed510056787b2108c6c397a (diff)
[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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 4 insertions, 12 deletions
diff --git a/configure b/configure
index 4124148..434355b 100755
--- a/configure
+++ b/configure
@@ -340,21 +340,13 @@ IFS="${save_IFS}"
# 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