]> git.ipfire.org Git - thirdparty/systemd.git/blob - catalog/meson.build
9857dd6d9abef08bccc1b4d4087bb2efcd9c0649
[thirdparty/systemd.git] / catalog / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
4
5 in_files = '''
6 systemd.bg.catalog
7 systemd.be.catalog
8 systemd.be@latin.catalog
9 systemd.de.catalog
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
18 '''.split()
19
20 support_url = get_option('support-url')
21 support_sed = 's~%SUPPORT_URL%~@0@~'.format(support_url)
22 build_catalog_dir = meson.current_build_dir()
23
24 foreach file : in_files
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)
33 endforeach
34
35 meson.add_install_script('sh', '-c',
36 'test -n "$DESTDIR" || @0@/journalctl --update-catalog'
37 .format(rootbindir))