]> git.ipfire.org Git - thirdparty/systemd.git/blame - catalog/meson.build
Merge pull request #7608 from poettering/more-news-v236
[thirdparty/systemd.git] / catalog / meson.build
CommitLineData
3a726fcd
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
3# Copyright 2017 Zbigniew Jędrzejewski-Szmek
4#
5# systemd is free software; you can redistribute it and/or modify it
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2.1 of the License, or
8# (at your option) any later version.
9#
10# systemd is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Lesser General Public License for more details.
14#
15# You should have received a copy of the GNU Lesser General Public License
16# along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
5c23128d 18in_files = '''
37efbbd8
ZJS
19 systemd.bg.catalog
20 systemd.be.catalog
21 systemd.be@latin.catalog
6722da79 22 systemd.de.catalog
37efbbd8
ZJS
23 systemd.fr.catalog
24 systemd.it.catalog
25 systemd.pl.catalog
26 systemd.pt_BR.catalog
27 systemd.ru.catalog
28 systemd.zh_CN.catalog
29 systemd.zh_TW.catalog
30 systemd.catalog
5c23128d
ZJS
31'''.split()
32
33support_url = get_option('support-url')
34support_sed = 's~%SUPPORT_URL%~@0@~'.format(support_url)
69e96427 35build_catalog_dir = meson.current_build_dir()
5c23128d
ZJS
36
37foreach file : in_files
37efbbd8
ZJS
38 custom_target(
39 file,
40 input : file + '.in',
41 output: file,
42 command : [sed, support_sed, '@INPUT@'],
43 capture : true,
44 install : true,
45 install_dir : catalogdir)
5c23128d 46endforeach
49e74d7e
ZJS
47
48meson.add_install_script('sh', '-c',
49 'test -n "$DESTDIR" || @0@/journalctl --update-catalog'
50 .format(rootbindir))