]>
Commit | Line | Data |
---|---|---|
3a726fcd | 1 | # SPDX-License-Identifier: LGPL-2.1+ |
3a726fcd | 2 | |
5c23128d | 3 | in_files = ''' |
37efbbd8 ZJS |
4 | systemd.bg.catalog |
5 | systemd.be.catalog | |
6 | systemd.be@latin.catalog | |
6722da79 | 7 | systemd.de.catalog |
37efbbd8 ZJS |
8 | systemd.fr.catalog |
9 | systemd.it.catalog | |
10 | systemd.pl.catalog | |
11 | systemd.pt_BR.catalog | |
12 | systemd.ru.catalog | |
13 | systemd.zh_CN.catalog | |
14 | systemd.zh_TW.catalog | |
15 | systemd.catalog | |
5c23128d ZJS |
16 | '''.split() |
17 | ||
18 | support_url = get_option('support-url') | |
19 | support_sed = 's~%SUPPORT_URL%~@0@~'.format(support_url) | |
20 | ||
21 | foreach file : in_files | |
37efbbd8 ZJS |
22 | custom_target( |
23 | file, | |
24 | input : file + '.in', | |
25 | output: file, | |
26 | command : [sed, support_sed, '@INPUT@'], | |
27 | capture : true, | |
28 | install : true, | |
29 | install_dir : catalogdir) | |
5c23128d | 30 | endforeach |
49e74d7e ZJS |
31 | |
32 | meson.add_install_script('sh', '-c', | |
33 | 'test -n "$DESTDIR" || @0@/journalctl --update-catalog' | |
34 | .format(rootbindir)) |