fwupd/data/bash-completion/meson.build
Mario Limonciello 221da635fd trivial: drop fwupdagent bash-completion
fwupdagent is a symlink to fwupdmgr, all the commands are the same now
2023-02-22 16:03:29 +00:00

24 lines
570 B
Meson

if bashcomp.found()
completions_dir = bashcomp.get_variable(pkgconfig: 'completionsdir',
pkgconfig_define: bashcomp.version().version_compare('>= 2.10') ? ['datadir', datadir] : ['prefix', prefix],
)
con = configuration_data()
con.set('localstatedir', localstatedir)
configure_file(
input: 'fwupdtool',
output: 'fwupdtool',
configuration: con,
install: true,
install_dir: completions_dir,
)
if build_daemon
install_data(['fwupdmgr'],
install_dir: completions_dir,
)
endif # build_daemon
endif # bashcomp.found()