]> git.saurik.com Git - apt.git/commitdiff
CMake: Exclude .md5 and .map doxygen files from install
authorJulian Andres Klode <jak@debian.org>
Thu, 11 Aug 2016 16:09:39 +0000 (18:09 +0200)
committerJulian Andres Klode <jak@debian.org>
Thu, 11 Aug 2016 17:51:07 +0000 (19:51 +0200)
This is much better than removing them in debian/rules.

Gbp-Dch: ignore

debian/rules
doc/CMakeLists.txt

index 9537ecd939600b6b31094482add77bd42551ab46..c1dba72afd66fa97ec789ba62f18f1697493c762 100755 (executable)
@@ -15,8 +15,6 @@ override_dh_install-indep:
        dh_movefiles
        dh_install --list-missing
 
        dh_movefiles
        dh_install --list-missing
 
-       find debian/libapt-pkg-doc/usr/share/doc/libapt-pkg-doc/html \( -name '*.md5' -o -name '*.map' \) -delete
-
 override_dh_install-arch:
        dh_movefiles
        dh_install --fail-missing
 override_dh_install-arch:
        dh_movefiles
        dh_install --fail-missing
index fb4a9a3a489544bec61a2cf2a1982b0fafbdf825..a1491428f0cd57654b4c1a7df73135157c83c41c 100644 (file)
@@ -56,7 +56,10 @@ add_custom_target(apt-doxygen ALL
 )
 
 install(DIRECTORY  ${PROJECT_BINARY_DIR}/doc/doxygen/html
 )
 
 install(DIRECTORY  ${PROJECT_BINARY_DIR}/doc/doxygen/html
-        DESTINATION ${CMAKE_INSTALL_DOCDIR}/../libapt-pkg-doc)
+        DESTINATION ${CMAKE_INSTALL_DOCDIR}/../libapt-pkg-doc
+        PATTERN "*.map" EXCLUDE
+        PATTERN "*.md5" EXCLUDE
+)
 
 endif()
 
 
 endif()