chiark / gitweb /
Apply missing updates from upstream
[elogind.git] / shell-completion / zsh / meson.build
1 zshcompletiondir = get_option('zshcompletiondir')
2 if zshcompletiondir == ''
3         zshcompletiondir = join_paths(datadir, 'zsh/site-functions')
4
5         message('zsh completions: @0@'.format(zshcompletiondir))
6 endif
7
8 if zshcompletiondir != 'no'
9 #if 0 /// elogind has a *very* short list for this...
10 #         zsh_systemctl = configure_file(
11 #                 input : '_systemctl.in',
12 #                 output : '_systemctl',
13 #                 configuration : substs)
14
15 #         items = [['_busctl',                   ''],
16 #                  ['_journalctl',               ''],
17 #                  ['_systemd-analyze',          ''],
18 #                  ['_systemd-delta',            ''],
19 #                  ['_systemd-nspawn',           ''],
20 #                  ['_systemd',                  ''],
21 #                  ['_systemd-run',              ''],
22 #                  ['_udevadm',                  ''],
23 #                  ['_kernel-install',           ''],
24 #                  ['_sd_hosts_or_user_at_host', ''],
25 #                  ['_sd_outputmodes',           ''],
26 #                  ['_sd_unit_files',            ''],
27 #                  ['_sd_machines',              ''],
28 #                  [zsh_systemctl,               ''],
29 #                  ['_bootctl',                  'ENABLE_EFI'],
30 #                  ['_coredumpctl',              'ENABLE_COREDUMP'],
31 #                  ['_hostnamectl',              'ENABLE_HOSTNAMED'],
32 #                  ['_localectl',                'ENABLE_LOCALED'],
33 #                  ['_loginctl',                 'ENABLE_LOGIND'],
34 #                  ['_machinectl',               'ENABLE_MACHINED'],
35 #                  ['_networkctl',               'ENABLE_NETWORKD'],
36 #                  ['_systemd-inhibit',          'ENABLE_LOGIND'],
37 #                  ['_systemd-resolve',          'ENABLE_RESOLVE'],
38 #                  ['_systemd-tmpfiles',         'ENABLE_TMPFILES'],
39 #                  ['_timedatectl',              'ENABLE_TIMEDATED'],
40 #else
41         items = [['_loginctl',            ''],
42 #endif // 0
43                 ]
44
45         foreach item : items
46                 if item[1] == '' or conf.get(item[1]) == 1
47                         install_data(item[0],
48                                      install_dir : zshcompletiondir)
49                 endif
50         endforeach
51 endif