1 Commits

Author SHA1 Message Date
Christian Tosta
84338bb9ac Fix empty Release tag 2025-08-04 12:12:30 -03:00

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
) )