aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJason Woodward <woodwardj@jaos.org>2021-02-21 23:46:20 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2021-02-27 14:35:23 +0200
commit50af09de031c8d003cd9e6afb44b774620b45696 (patch)
tree52e16c84d9f9b851a05307e4fa4f053e44bab00c /test cases
parent0047f7439c6bafe964438e2c59a3686201ff24c0 (diff)
downloadmeson-50af09de031c8d003cd9e6afb44b774620b45696.zip
meson-50af09de031c8d003cd9e6afb44b774620b45696.tar.gz
meson-50af09de031c8d003cd9e6afb44b774620b45696.tar.bz2
install_man locale support
Rather than having to manually build the locale aware man paths with `install_data('foo.fr.1', install_dir: join_paths(get_option('mandir'), 'fr', 'man1'), rename: 'foo.1')` Support doing `install_man('foo.fr.1', locale: 'fr')`
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/10 man install/foo.fr.11
-rw-r--r--test cases/common/10 man install/meson.build1
-rw-r--r--test cases/common/10 man install/test.json1
3 files changed, 3 insertions, 0 deletions
diff --git a/test cases/common/10 man install/foo.fr.1 b/test cases/common/10 man install/foo.fr.1
new file mode 100644
index 0000000..647c097
--- /dev/null
+++ b/test cases/common/10 man install/foo.fr.1
@@ -0,0 +1 @@
+this is a man page of foo.1 its contents are irrelevant
diff --git a/test cases/common/10 man install/meson.build b/test cases/common/10 man install/meson.build
index 8262ffc..05c5278 100644
--- a/test cases/common/10 man install/meson.build
+++ b/test cases/common/10 man install/meson.build
@@ -1,6 +1,7 @@
project('man install', 'c')
m1 = install_man('foo.1')
m2 = install_man('bar.2')
+m3 = install_man('foo.fr.1', locale: 'fr')
install_man('vanishing/vanishing.2')
subdir('vanishing')
diff --git a/test cases/common/10 man install/test.json b/test cases/common/10 man install/test.json
index cdcc81f..5ef673a 100644
--- a/test cases/common/10 man install/test.json
+++ b/test cases/common/10 man install/test.json
@@ -1,6 +1,7 @@
{
"installed": [
{ "type": "file", "file": "usr/share/man/man1/foo.1" },
+ { "type": "file", "file": "usr/share/man/fr/man1/foo.1" },
{ "type": "file", "file": "usr/share/man/man2/bar.2" },
{ "type": "file", "file": "usr/share/man/man1/vanishing.1" },
{ "type": "file", "file": "usr/share/man/man2/vanishing.2" },