--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+bash_completion = configure_file(
+ configuration: conf,
+ input: 'lxc.in',
+ output: 'lxc',
+ install: true,
+ install_dir: bashcompletiondir)
+
+
+foreach cmd: [
+ 'lxc-attach',
+ 'lxc-autostart',
+ 'lxc-cgroup',
+ 'lxc-checkpoint',
+ 'lxc-config',
+ 'lxc-console',
+ 'lxc-copy',
+ 'lxc-create',
+ 'lxc-destroy',
+ 'lxc-device',
+ 'lxc-execute',
+ 'lxc-freeze',
+ 'lxc-info',
+ 'lxc-ls',
+ 'lxc-monitor',
+ 'lxc-snapshot',
+ 'lxc-start',
+ 'lxc-stop',
+ 'lxc-top',
+ 'lxc-unfreeze',
+ 'lxc-unshare',
+ 'lxc-usernsexec',
+ 'lxc-wait',
+]
+ install_symlink(cmd,
+ pointing_to: 'lxc',
+ install_dir: bashcompletiondir)
+endforeach
user_network_db_opt = get_option('user-network-db')
user_network_conf_opt = get_option('user-network-conf')
+bashcompletiondir = join_paths('/', 'usr', 'share', 'bash-completion', 'completions')
bindir = join_paths(prefixdir, get_option('bindir'))
datadir = join_paths(prefixdir, get_option('datadir'))
docdir = join_paths(prefixdir, get_option('docdir'))
dependencies: liblxc_dependencies)
# Rest of sub-directories.
+subdir('config/bash')
subdir('doc/rootfs')
subdir('hooks')
subdir('src/lxc/cmd')