diff -r e0816bfc311b -r f1326505e3e5 configure --- a/configure Wed Jan 16 21:41:53 2008 +0000 +++ b/configure Sun Apr 13 22:46:02 2008 +0000 @@ -121,6 +121,21 @@ #--------------------------------------------------------------------- # Some sanity checks, now +# If this version is a svn snapshot, try to get the revision number +# 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 + ;; +esac + # Check bash is present, and at least version 3.0 [ -x /bin/bash ] || do_error "bash 3.0 or above was not found in /bin/bash" bash_version=$(/bin/bash -c 'echo ${BASH_VERSION}')