fwupd/data/bash-completion/meson.build
Richard Hughes f0bc835769 Move all the fwupdagent code to fwupdmgr
We want to provide a lot more in JSON format in the future, and this
will reduce a lot of code duplication.

As various people are using this in the wild, the existing fwupdagent
binary just shims requests to fwupdmgr as required. We'll stop doing
this for 2.0.0 or something.
2021-07-15 20:34:07 +01:00

30 lines
750 B
Meson

if bashcomp.found()
completions_dir = bashcomp.get_pkgconfig_variable('completionsdir',
define_variable: bashcomp.version().version_compare('>= 2.10') ? ['datadir', datadir] : ['prefix', prefix],
)
# replace @libexecdir@
fwupdtool_path = join_paths(libexecdir, 'fwupd')
con2 = configuration_data()
con2.set('libexecdir', fwupdtool_path)
configure_file(
input : 'fwupdtool.in',
output : 'fwupdtool',
configuration : con2,
install: true,
install_dir: completions_dir)
if build_daemon
install_data(['fwupdagent'],
install_dir : completions_dir,
)
configure_file(
input : 'fwupdmgr.in',
output : 'fwupdmgr',
configuration : con2,
install: true,
install_dir: completions_dir)
endif # build_daemon
endif # bashcomp.found()