From: Kefu Chai Date: Thu, 26 May 2016 08:13:28 +0000 (+0800) Subject: cmake: install bash-completion scripts also X-Git-Tag: v11.0.0~390^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=58a1f8e4a700ba45277c3815a705b7ef60e6e65a;p=ceph.git cmake: install bash-completion scripts also Signed-off-by: Kefu Chai --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f311136f0f4..dfa3500c48d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1054,6 +1054,8 @@ install(PROGRAMS ${CMAKE_SOURCE_DIR}/src/ceph-disk-udev DESTINATION sbin) +add_subdirectory(bash_completion) + set(parse_secret_files common/secret.c) add_library(parse_secret_objs OBJECT ${parse_secret_files}) diff --git a/src/bash_completion/CMakeLists.txt b/src/bash_completion/CMakeLists.txt new file mode 100644 index 00000000000..a742f328c86 --- /dev/null +++ b/src/bash_completion/CMakeLists.txt @@ -0,0 +1,15 @@ +set(completions + ceph + rados) + +if(WITH_RBD) + list(APPEND completions rbd) +endif() + +if(WITH_RADOSGW) + list(APPEND completions radosgw-admin) +endif() + +install(FILES ${completions} + DESTINATION ${sysconfdir}/bash_completion.d) +