Fixed OPTION_AUTOVERSION for new sourceforge url

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5406 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f22a0e29c56a93b9ef342e5145274e0ac79fbf4f
Former-commit-id: ddbf69297cd5fd70585321445c303d2ecc06153a
This commit is contained in:
beaglejoe 2013-04-14 00:30:45 +00:00
parent 9205016ed2
commit c64a3d83c2

View file

@ -31,10 +31,10 @@ ELSE(NOT OPTION_AUTOVERSION)
SET(HEAD_URL "$HeadURL$")
# Define regular expressions
SET(REGEX_TAG "^\\$HeadURL:.*speed-dreams/tags/([^/\\$ ]*).*\\$$")
SET(REGEX_BUG_BRANCH "^\\$HeadURL:.*speed-dreams/branches/([0-9]+\\.[0-9]+)(\\.[xX])?/.*\\$$")
SET(REGEX_TRUNK "^\\$HeadURL:.*speed-dreams/trunk/.*\\$$")
SET(REGEX_BRANCH "^\\$HeadURL:.*speed-dreams/branches/([^/\\$ ]*).*\\$$")
SET(REGEX_TAG "^\\$HeadURL:.*speed-dreams/code/tags/([^/\\$ ]*).*\\$$")
SET(REGEX_BUG_BRANCH "^\\$HeadURL:.*speed-dreams/code/branches/([0-9]+\\.[0-9]+)(\\.[xX])?/.*\\$$")
SET(REGEX_TRUNK "^\\$HeadURL:.*speed-dreams/code/trunk/.*\\$$")
SET(REGEX_BRANCH "^\\$HeadURL:.*speed-dreams/code/branches/([^/\\$ ]*).*\\$$")
# Check regular expressions
STRING(REGEX MATCH "${REGEX_TAG}" VERSION_IS_TAG "${HEAD_URL}")