diff options
author | Jason Woodward <woodwardj@jaos.org> | 2021-02-21 23:46:20 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-02-27 14:35:23 +0200 |
commit | 50af09de031c8d003cd9e6afb44b774620b45696 (patch) | |
tree | 52e16c84d9f9b851a05307e4fa4f053e44bab00c /test cases | |
parent | 0047f7439c6bafe964438e2c59a3686201ff24c0 (diff) | |
download | meson-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.1 | 1 | ||||
-rw-r--r-- | test cases/common/10 man install/meson.build | 1 | ||||
-rw-r--r-- | test cases/common/10 man install/test.json | 1 |
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" }, |