Commit b462a3e0 authored by Jonathan Perkin's avatar Jonathan Perkin

Don't install documentation when INSTALL_LAYOUT=RPM, as the spec file

prefers to take docs directly from the source tree.
parent 651aeb62
...@@ -274,21 +274,28 @@ ELSE() ...@@ -274,21 +274,28 @@ ELSE()
SET(CPACK_GENERATOR "TGZ") SET(CPACK_GENERATOR "TGZ")
ENDIF() ENDIF()
INCLUDE(CPack) INCLUDE(CPack)
INSTALL(FILES COPYING EXCEPTIONS-CLIENT LICENSE.mysql DESTINATION ${INSTALL_DOCREADMEDIR} OPTIONAL)
INSTALL(FILES README DESTINATION ${INSTALL_DOCREADMEDIR})
IF(UNIX) IF(UNIX)
INSTALL(FILES Docs/mysql.info DESTINATION ${INSTALL_INFODIR}) INSTALL(FILES Docs/mysql.info DESTINATION ${INSTALL_INFODIR})
INSTALL(FILES Docs/INSTALL-BINARY DESTINATION ${INSTALL_DOCREADMEDIR})
ENDIF() ENDIF()
# MYSQL_DOCS_LOCATON is used in "make dist", points to the documentation directory #
SET(MYSQL_DOCS_LOCATION "" CACHE PATH "Location from where documentation is copied") # RPM installs documentation directly from the source tree
MARK_AS_ADVANCED(MYSQL_DOCS_LOCATION) #
INSTALL(DIRECTORY Docs/ DESTINATION ${INSTALL_DOCDIR} IF(NOT INSTALL_LAYOUT MATCHES "RPM")
PATTERN "INSTALL-BINARY" EXCLUDE INSTALL(FILES COPYING EXCEPTIONS-CLIENT LICENSE.mysql DESTINATION ${INSTALL_DOCREADMEDIR} OPTIONAL)
PATTERN "Makefile.*" EXCLUDE INSTALL(FILES README DESTINATION ${INSTALL_DOCREADMEDIR})
PATTERN "glibc*" EXCLUDE IF(UNIX)
PATTERN "linuxthreads.txt" EXCLUDE INSTALL(FILES Docs/INSTALL-BINARY DESTINATION ${INSTALL_DOCREADMEDIR})
PATTERN "myisam.txt" EXCLUDE ENDIF()
PATTERN "mysql.info" EXCLUDE # MYSQL_DOCS_LOCATON is used in "make dist", points to the documentation directory
PATTERN "sp-imp-spec.txt" EXCLUDE SET(MYSQL_DOCS_LOCATION "" CACHE PATH "Location from where documentation is copied")
) MARK_AS_ADVANCED(MYSQL_DOCS_LOCATION)
INSTALL(DIRECTORY Docs/ DESTINATION ${INSTALL_DOCDIR}
PATTERN "INSTALL-BINARY" EXCLUDE
PATTERN "Makefile.*" EXCLUDE
PATTERN "glibc*" EXCLUDE
PATTERN "linuxthreads.txt" EXCLUDE
PATTERN "myisam.txt" EXCLUDE
PATTERN "mysql.info" EXCLUDE
PATTERN "sp-imp-spec.txt" EXCLUDE
)
ENDIF()
...@@ -121,8 +121,8 @@ ENDIF() ...@@ -121,8 +121,8 @@ ENDIF()
SET(INSTALL_SBINDIR_RPM "sbin") SET(INSTALL_SBINDIR_RPM "sbin")
SET(INSTALL_SHAREDIR_RPM "share") SET(INSTALL_SHAREDIR_RPM "share")
# #
SET(INSTALL_DOCDIR_RPM "${INSTALL_SHAREDIR_RPM}/mysql/doc/MySQL-server-${MYSQL_NO_DASH_VERSION}") #SET(INSTALL_DOCDIR_RPM "XXXunset")
SET(INSTALL_DOCREADMEDIR_RPM "${INSTALL_DOCDIR_RPM}") #SET(INSTALL_DOCREADMEDIR_RPM "${INSTALL_DOCDIR_RPM}")
SET(INSTALL_INFODIR_RPM "${INSTALL_SHAREDIR_RPM}/info") SET(INSTALL_INFODIR_RPM "${INSTALL_SHAREDIR_RPM}/info")
SET(INSTALL_MANDIR_RPM "${INSTALL_SHAREDIR_RPM}/man") SET(INSTALL_MANDIR_RPM "${INSTALL_SHAREDIR_RPM}/man")
SET(INSTALL_MYSQLDATADIR_RPM "var") SET(INSTALL_MYSQLDATADIR_RPM "var")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment