2013-09-10 22:53:44 +02:00
|
|
|
#
|
|
|
|
# One day it'll be a complete solution for building deb packages with CPack
|
|
|
|
# But for now it's only to make INSTALL_DOCUMENTATION function happy
|
|
|
|
#
|
|
|
|
IF(DEB)
|
|
|
|
SET(CPACK_COMPONENT_SERVER_GROUP "server")
|
|
|
|
SET(CPACK_COMPONENT_README_GROUP "server")
|
2013-09-25 19:32:14 +02:00
|
|
|
SET(CPACK_COMPONENTS_ALL Server Test SharedLibraries)
|
2020-06-27 18:44:00 +02:00
|
|
|
SET(PYTHON_SHEBANG "/usr/bin/python3" CACHE STRING "python shebang")
|
2020-11-27 14:36:10 +01:00
|
|
|
|
|
|
|
FUNCTION(SET_PLUGIN_DEB_VERSION plugin ver)
|
|
|
|
STRING(REPLACE "_" "-" plugin ${plugin})
|
|
|
|
STRING(REPLACE "-" "." serverver ${SERVER_VERSION})
|
|
|
|
STRING(REPLACE ${SERVER_VERSION} ${serverver} ver ${ver})
|
|
|
|
FILE(READ ${CMAKE_SOURCE_DIR}/debian/changelog changelog)
|
|
|
|
STRING(REPLACE ${serverver} ${ver} changelog "${changelog}")
|
|
|
|
FILE(WRITE ${CMAKE_SOURCE_DIR}/debian/mariadb-plugin-${plugin}.changelog "${changelog}")
|
|
|
|
ENDFUNCTION()
|
|
|
|
|
|
|
|
ELSE(DEB)
|
|
|
|
FUNCTION(SET_PLUGIN_DEB_VERSION plugin ver)
|
|
|
|
ENDFUNCTION()
|
2013-09-10 22:53:44 +02:00
|
|
|
ENDIF(DEB)
|
|
|
|
|