Changeset: 9cdd7d7fee00 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9cdd7d7fee00
Modified Files:
common/utils/GenerateVersionHeader.cmake
Branch: Aug2024
Log Message:
Cmake's REGEX REPLACE matches too much.
diffs (12 lines):
diff --git a/common/utils/GenerateVersionHeader.cmake
b/common/utils/GenerateVersionHeader.cmake
--- a/common/utils/GenerateVersionHeader.cmake
+++ b/common/utils/GenerateVersionHeader.cmake
@@ -11,7 +11,7 @@ if(EXISTS "${DIR}/.hg_archival.txt")
set(MERCURIAL_ID "${HG_NODE}")
endif()
if(HG_ARCHIVAL MATCHES ".*branch:.*")
- string(REGEX REPLACE ".*branch: (.*)" "\\1" HG_BRANCH "${HG_ARCHIVAL}")
+ string(REGEX REPLACE ".*branch: ([-._A-Za-z0-9]*).*" "\\1" HG_BRANCH
"${HG_ARCHIVAL}")
set(MERCURIAL_BRANCH "${HG_BRANCH}")
endif()
else()
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]