diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-04-17 19:21:32 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-04-17 19:21:32 +0000 |
commit | fe5dc3db26fef2f07258da1d0021dab8b67cd9a9 (patch) | |
tree | 2570522901fd1c01f148c5c016f1c025b548cf16 | |
parent | 301d9c8d5772f74f59d8cd52b3a2a296aac13409 (diff) | |
download | crosstool-ng-fe5dc3db26fef2f07258da1d0021dab8b67cd9a9.tar.gz crosstool-ng-fe5dc3db26fef2f07258da1d0021dab8b67cd9a9.tar.bz2 crosstool-ng-fe5dc3db26fef2f07258da1d0021dab8b67cd9a9.zip |
Cleanup building the snapshot version number.
configure | 18 10 8 0 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
-rwxr-xr-x | configure | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -125,14 +125,16 @@ fi # If we can't get the revision number, use date case "${VERSION}" in *+svn) - REVISION=$(LANG=C svn info 2>/dev/null |egrep 'Revision: ' |cut -d ' ' -f 2-) - if [ -n "${REVISION}" ]; then - URL=$(LANG=C svn info 2>/dev/null |egrep 'URL: ' |cut -d ' ' -f 2-) - ROOT=$(LANG=C svn info 2>/dev/null |egrep 'Repository Root: ' |cut -d ' ' -f 3-) - VERSION="${VERSION}:${URL#${ROOT}}@${REVISION}" - else - VERSION="${VERSION}:unknown@$(date +%Y%m%d.%H%M%S)" - fi + REVISION=$(svnversion) + case "${REVISION}" in + exported) + VERSION="${VERSION}:unknown@$(date +%Y%m%d.%H%M%S)";; + *) + URL=$(LANG=C svn info 2>/dev/null |egrep 'URL: ' |cut -d ' ' -f 2-) + ROOT=$(LANG=C svn info 2>/dev/null |egrep 'Repository Root: ' |cut -d ' ' -f 3-) + VERSION="${VERSION}:${URL#${ROOT}}@${REVISION}" + ;; + esac ;; esac |