]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: mgr: exclude .gitignore 19174/head
authorNathan Cutler <ncutler@suse.com>
Mon, 27 Nov 2017 14:09:39 +0000 (15:09 +0100)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Nov 2017 14:24:38 +0000 (15:24 +0100)
Fixes RPMLINT warning:

ceph-mgr.x86_64: W: version-control-internal-file /usr/lib64/ceph/mgr/.gitignore
ceph-mgr.x86_64: W: version-control-internal-file /usr/lib64/ceph/mgr/dashboard/static/AdminLTE-2.3.7/.gitignore
You have included file(s) internally used by a version control system in the
package. Move these files out of the package and rebuild it.

Note: the backslash has to be doubled up for the regex to make
it through CMake.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/pybind/CMakeLists.txt

index dbdb23f1c567c766657bebc42ff44ef1b3f47d6e..040b8dd4f1c5a0820663dce8486e0a0e229742eb 100644 (file)
@@ -65,5 +65,6 @@ if(WITH_MGR)
   # OPTION(mgr_module_path, OPT_STR, CEPH_PKGLIBDIR "/mgr")
   install(DIRECTORY
     ${CMAKE_CURRENT_SOURCE_DIR}/mgr
-    DESTINATION ${CMAKE_INSTALL_PKGLIBDIR})
+    DESTINATION ${CMAKE_INSTALL_PKGLIBDIR}
+    REGEX ".*/\\.gitignore" EXCLUDE)
 endif(WITH_MGR)