Browse Source

CMake: Install bash completions via cmake

Having the completions installed only by the packaging was
an oversight.

Gbp-Dch: ignore
tags/devuan/2.0.1+devuan1
Julian Andres Klode 4 years ago
parent
commit
1bb40ea62e
3 changed files with 6 additions and 1 deletions
  1. +1
    -0
      CMakeLists.txt
  2. +4
    -0
      completions/CMakeLists.txt
  3. +1
    -1
      debian/apt.install

+ 1
- 0
CMakeLists.txt View File

@@ -133,6 +133,7 @@ add_subdirectory(apt-pkg)
add_subdirectory(apt-private)
add_subdirectory(apt-inst)
add_subdirectory(cmdline)
add_subdirectory(completions)
add_subdirectory(doc)
add_subdirectory(dselect)
add_subdirectory(ftparchive)


+ 4
- 0
completions/CMakeLists.txt View File

@@ -0,0 +1,4 @@
set(BASH_COMPLETION_DIR "${CMAKE_INSTALL_DATAROOTDIR}/bash-completion/completions"
CACHE PATH "Path to the bash-completion completions directory")

install(FILES bash/apt DESTINATION ${BASH_COMPLETION_DIR})

+ 1
- 1
debian/apt.install View File

@@ -29,7 +29,7 @@ usr/share/man/*/*/apt-mark.*
usr/share/man/*/*/apt-secure.*
usr/share/man/*/*/sources.list.*
usr/share/man/*/*/apt_preferences.*
completions/bash/* /usr/share/bash-completion/completions/
usr/share/bash-completion/completions/
debian/*.service /lib/systemd/system/
debian/*.timer /lib/systemd/system/
usr/lib/apt/apt-helper


Loading…
Cancel
Save