mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Added support for product names in package names
This commit is contained in:
parent
4e04b86355
commit
493ee9d330
1 changed files with 12 additions and 3 deletions
|
@ -122,10 +122,19 @@ IF(NOT CPACK_PACKAGE_FILE_NAME)
|
|||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
SET(package_name "mysql-${VERSION}-${SYSTEM_NAME_AND_PROCESSOR}" )
|
||||
# Sometimes package suffix is added (something like icc-glibc23)
|
||||
IF(SHORT_PRODUCT_TAG)
|
||||
SET(PRODUCT_TAG "-${SHORT_PRODUCT_TAG}")
|
||||
ELSEIF(MYSQL_SERVER_SUFFIX)
|
||||
SET(PRODUCT_TAG "${MYSQL_SERVER_SUFFIX}") # Already has a leading dash
|
||||
ELSE()
|
||||
SET(PRODUCT_TAG)
|
||||
ENDIF()
|
||||
|
||||
SET(package_name "mysql${PRODUCT_TAG}-${VERSION}-${SYSTEM_NAME_AND_PROCESSOR}")
|
||||
|
||||
# Sometimes package suffix is added (something like "-icc-glibc23")
|
||||
IF(PACKAGE_SUFFIX)
|
||||
SET(package_name "${package_name}-${PACKAGE_SUFFIX}")
|
||||
SET(package_name "${package_name}${PACKAGE_SUFFIX}")
|
||||
ENDIF()
|
||||
STRING(TOLOWER ${package_name} package_name)
|
||||
SET(CPACK_PACKAGE_FILE_NAME ${package_name})
|
||||
|
|
Loading…
Reference in a new issue