mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 08:25:32 +00:00
Cleanup building the snapshot version number.
configure | 18 10 8 0 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
This commit is contained in:
parent
301d9c8d57
commit
fe5dc3db26
18
configure
vendored
18
configure
vendored
@ -125,14 +125,16 @@ fi
|
|||||||
# If we can't get the revision number, use date
|
# If we can't get the revision number, use date
|
||||||
case "${VERSION}" in
|
case "${VERSION}" in
|
||||||
*+svn)
|
*+svn)
|
||||||
REVISION=$(LANG=C svn info 2>/dev/null |egrep 'Revision: ' |cut -d ' ' -f 2-)
|
REVISION=$(svnversion)
|
||||||
if [ -n "${REVISION}" ]; then
|
case "${REVISION}" in
|
||||||
URL=$(LANG=C svn info 2>/dev/null |egrep 'URL: ' |cut -d ' ' -f 2-)
|
exported)
|
||||||
ROOT=$(LANG=C svn info 2>/dev/null |egrep 'Repository Root: ' |cut -d ' ' -f 3-)
|
VERSION="${VERSION}:unknown@$(date +%Y%m%d.%H%M%S)";;
|
||||||
VERSION="${VERSION}:${URL#${ROOT}}@${REVISION}"
|
*)
|
||||||
else
|
URL=$(LANG=C svn info 2>/dev/null |egrep 'URL: ' |cut -d ' ' -f 2-)
|
||||||
VERSION="${VERSION}:unknown@$(date +%Y%m%d.%H%M%S)"
|
ROOT=$(LANG=C svn info 2>/dev/null |egrep 'Repository Root: ' |cut -d ' ' -f 3-)
|
||||||
fi
|
VERSION="${VERSION}:${URL#${ROOT}}@${REVISION}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user