[geary] Ensure translated manual pages are installed under Meson.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Ensure translated manual pages are installed under Meson.
- Date: Mon, 15 Jan 2018 00:58:08 +0000 (UTC)
commit f3e2dac20fb07bf108819f8e8105a5799fd3e63c
Author: Michael James Gratton <mike vee net>
Date: Mon Jan 15 11:56:52 2018 +1100
Ensure translated manual pages are installed under Meson.
help/meson.build | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/help/meson.build b/help/meson.build
index d6af75b..b375c60 100644
--- a/help/meson.build
+++ b/help/meson.build
@@ -13,6 +13,20 @@ geary_help_pages = [
'write.page',
]
+# Meson 0.44 added support for automatically reading LINGUAS, until we
+# can depend on that, read it in outselves. Note this means if you
+# change LINGUAS, you will need remove your build directory and re-run
+# meson for it to be picked up.
+linguas = run_command(['cat', 'LINGUAS']).stdout().strip()
+langs = []
+foreach line : linguas.split('\n')
+ line = line.strip()
+ if not line.startswith('#')
+ langs += line
+ endif
+endforeach
+
gnome.yelp(meson.project_name(),
+ languages: langs,
sources: geary_help_pages,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]