]> git.ipfire.org Git - thirdparty/systemd.git/blame - shell-completion/zsh/meson.build
Drop my copyright headers
[thirdparty/systemd.git] / shell-completion / zsh / meson.build
CommitLineData
3a726fcd 1# SPDX-License-Identifier: LGPL-2.1+
3a726fcd 2
5c23128d
ZJS
3zshcompletiondir = get_option('zshcompletiondir')
4if zshcompletiondir == ''
37efbbd8 5 zshcompletiondir = join_paths(datadir, 'zsh/site-functions')
5c23128d 6
37efbbd8 7 message('zsh completions: @0@'.format(zshcompletiondir))
5c23128d
ZJS
8endif
9
10if zshcompletiondir != 'no'
37efbbd8
ZJS
11 zsh_systemctl = configure_file(
12 input : '_systemctl.in',
13 output : '_systemctl',
14 configuration : substs)
5c23128d 15
37efbbd8
ZJS
16 items = [['_busctl', ''],
17 ['_journalctl', ''],
18 ['_systemd-analyze', ''],
19 ['_systemd-delta', ''],
20 ['_systemd-nspawn', ''],
21 ['_systemd', ''],
22 ['_systemd-run', ''],
23 ['_udevadm', ''],
24 ['_kernel-install', ''],
25 ['_sd_hosts_or_user_at_host', ''],
26 ['_sd_outputmodes', ''],
27 ['_sd_unit_files', ''],
28 ['_sd_machines', ''],
29 [zsh_systemctl, ''],
30 ['_bootctl', 'ENABLE_EFI'],
31 ['_coredumpctl', 'ENABLE_COREDUMP'],
32 ['_hostnamectl', 'ENABLE_HOSTNAMED'],
33 ['_localectl', 'ENABLE_LOCALED'],
34 ['_loginctl', 'ENABLE_LOGIND'],
35 ['_machinectl', 'ENABLE_MACHINED'],
36 ['_networkctl', 'ENABLE_NETWORKD'],
37 ['_systemd-inhibit', 'ENABLE_LOGIND'],
1ec57f33 38 ['_systemd-resolve', 'ENABLE_RESOLVE'],
37efbbd8
ZJS
39 ['_systemd-tmpfiles', 'ENABLE_TMPFILES'],
40 ['_timedatectl', 'ENABLE_TIMEDATED'],
41 ]
5c23128d 42
37efbbd8 43 foreach item : items
349cc4a5 44 if item[1] == '' or conf.get(item[1]) == 1
37efbbd8
ZJS
45 install_data(item[0],
46 install_dir : zshcompletiondir)
47 endif
48 endforeach
5c23128d 49endif