toolbox/meson.build
Florian Müllner 01274dc6a6 completion: Add Bash completion
Make using toolbox a bit more convenient by properly completing its
options. The completions should be complete (that is, there are
completions for all the commands and options shown in --help),
but no attempt is made to filter out conflicting options (for
example "toolbox rm --all my-container").

https://github.com/debarshiray/toolbox/pull/133
2019-04-26 15:44:27 +02:00

37 lines
779 B
Meson

project(
'toolbox',
version: '0.0.8',
license: 'ASL 2.0',
meson_version: '>= 0.40.0',
)
go_md2man = find_program('go-md2man')
shellcheck = find_program('shellcheck', required: false)
profiledir = get_option('profile_dir')
systemd_dep = dependency('systemd')
tmpfilesdir = systemd_dep.get_pkgconfig_variable('tmpfilesdir')
toolbox = files('toolbox')
if shellcheck.found()
test('shellcheck', shellcheck, args: [toolbox])
endif
install_data(
toolbox,
install_dir: get_option('bindir'),
)
bash_completion = dependency('bash-completion', required: false)
if bash_completion.found()
install_data(
'completion/bash/toolbox',
install_dir: bash_completion.get_pkgconfig_variable('completionsdir')
)
endif
subdir('data')
subdir('doc')
subdir('profile.d')