From 50af09de031c8d003cd9e6afb44b774620b45696 Mon Sep 17 00:00:00 2001 From: Jason Woodward Date: Sun, 21 Feb 2021 23:46:20 -0500 Subject: 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')` --- test cases/common/10 man install/foo.fr.1 | 1 + test cases/common/10 man install/meson.build | 1 + test cases/common/10 man install/test.json | 1 + 3 files changed, 3 insertions(+) create mode 100644 test cases/common/10 man install/foo.fr.1 (limited to 'test cases') 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" }, -- cgit v1.1