mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 04:47:52 +00:00
[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.
This commit is contained in:
parent
6841b1f9ec
commit
e76e47b650
16
configure
vendored
16
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user