fwupd/data/bash-completion/meson.build
Richard Hughes 5806867ebe Add the fwupdagent binary for use in shell scripts
This currently just outputs the current list of devices with releases and makes
it possible to integrate firmware version reporting with other tools like mgmt.
2019-03-06 13:15:55 +00:00

31 lines
624 B
Meson

if bashcomp.found()
tgt = bashcomp.get_pkgconfig_variable('completionsdir',
define_variable: [ 'prefix', prefix ],
)
if get_option('daemon')
install_data(['fwupdmgr'],
install_dir : tgt,
)
endif
if get_option('agent')
install_data(['fwupdagent'],
install_dir : tgt,
)
endif
# 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: tgt)
endif