Fix empty Release tag

This commit is contained in:
Christian Tosta
2025-08-04 12:12:30 -03:00
parent 90a07c90e6
commit 84338bb9ac

View File

@@ -72,6 +72,8 @@ execute_process(
"head -1 \"${CMAKE_CURRENT_SOURCE_DIR}/changelog.txt\" \ "head -1 \"${CMAKE_CURRENT_SOURCE_DIR}/changelog.txt\" \
| grep -iPo '.*${CPACK_PACKAGE_VERSION}-\\K[\\d]' \ | grep -iPo '.*${CPACK_PACKAGE_VERSION}-\\K[\\d]' \
| tr -d '\\n' \ | tr -d '\\n' \
| grep -P '\\d' \
|| echo -n 1 \
" "
OUTPUT_VARIABLE CPACK_RPM_PACKAGE_RELEASE OUTPUT_VARIABLE CPACK_RPM_PACKAGE_RELEASE
) )