Skip to content
Snippets Groups Projects
Commit 798d653c authored by Eidolon's avatar Eidolon
Browse files

Substitute some unsafe chars for revision name

This ensures that the build system won't output something like
ringracers_rr/master.exe, among other potential issues.
parent df281690
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,9 @@ if(NOT "${SRB2_GIT_DIR}" STREQUAL "" AND "${SRB2_SDL2_EXE_NAME}" STREQUAL "")
list(APPEND EXE_NAME_PARTS "ringracers")
if(NOT "${SRB2_GIT_REVISION}" STREQUAL "master")
list(APPEND EXE_NAME_PARTS ${SRB2_GIT_REVISION})
# substitute path-unsafe characters
string(REGEX REPLACE "[\\\/\^\$]" "_" SAFE_REVISION "${SRB2_GIT_REVISION}")
list(APPEND EXE_NAME_PARTS ${SAFE_REVISION})
endif()
if (SRB2_CONFIG_TESTERS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment