mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Don't install documentation when INSTALL_LAYOUT=RPM, as the spec file
prefers to take docs directly from the source tree.
This commit is contained in:
parent
5fd878c3f0
commit
127bdb6eda
2 changed files with 24 additions and 17 deletions
|
@ -274,10 +274,16 @@ ELSE()
|
|||
SET(CPACK_GENERATOR "TGZ")
|
||||
ENDIF()
|
||||
INCLUDE(CPack)
|
||||
IF(UNIX)
|
||||
INSTALL(FILES Docs/mysql.info DESTINATION ${INSTALL_INFODIR})
|
||||
ENDIF()
|
||||
#
|
||||
# RPM installs documentation directly from the source tree
|
||||
#
|
||||
IF(NOT INSTALL_LAYOUT MATCHES "RPM")
|
||||
INSTALL(FILES COPYING EXCEPTIONS-CLIENT LICENSE.mysql DESTINATION ${INSTALL_DOCREADMEDIR} OPTIONAL)
|
||||
INSTALL(FILES README DESTINATION ${INSTALL_DOCREADMEDIR})
|
||||
IF(UNIX)
|
||||
INSTALL(FILES Docs/mysql.info DESTINATION ${INSTALL_INFODIR})
|
||||
INSTALL(FILES Docs/INSTALL-BINARY DESTINATION ${INSTALL_DOCREADMEDIR})
|
||||
ENDIF()
|
||||
# MYSQL_DOCS_LOCATON is used in "make dist", points to the documentation directory
|
||||
|
@ -292,3 +298,4 @@ INSTALL(DIRECTORY Docs/ DESTINATION ${INSTALL_DOCDIR}
|
|||
PATTERN "mysql.info" EXCLUDE
|
||||
PATTERN "sp-imp-spec.txt" EXCLUDE
|
||||
)
|
||||
ENDIF()
|
||||
|
|
|
@ -121,8 +121,8 @@ ENDIF()
|
|||
SET(INSTALL_SBINDIR_RPM "sbin")
|
||||
SET(INSTALL_SHAREDIR_RPM "share")
|
||||
#
|
||||
SET(INSTALL_DOCDIR_RPM "${INSTALL_SHAREDIR_RPM}/mysql/doc/MySQL-server-${MYSQL_NO_DASH_VERSION}")
|
||||
SET(INSTALL_DOCREADMEDIR_RPM "${INSTALL_DOCDIR_RPM}")
|
||||
#SET(INSTALL_DOCDIR_RPM "XXXunset")
|
||||
#SET(INSTALL_DOCREADMEDIR_RPM "${INSTALL_DOCDIR_RPM}")
|
||||
SET(INSTALL_INFODIR_RPM "${INSTALL_SHAREDIR_RPM}/info")
|
||||
SET(INSTALL_MANDIR_RPM "${INSTALL_SHAREDIR_RPM}/man")
|
||||
SET(INSTALL_MYSQLDATADIR_RPM "var")
|
||||
|
|
Loading…
Reference in a new issue