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