From 945ae1cf55b035afb0a74cb513b49100bf589b4d Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Thu, 4 Mar 2021 06:21:45 +0000 Subject: [PATCH] docs: move manpages to proper section directories Arbitrary sections may not be supported by all man(1) implementations. labwc manpages have numeric sections but installed in the wrong place: $ meson setup --prefix=/usr _build && meson install -C _build [...] Installing docs/labwc.1 to /usr/share/man/man.1 Installing docs/labwc-config.5 to /usr/share/man/man-config.5 Installing docs/labwc-theme.5 to /usr/share/man/man-theme.5 Installing docs/labwc-actions.5 to /usr/share/man/man-actions.5 [...] --- docs/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/meson.build b/docs/meson.build index 718c24bb..e506ee56 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -12,7 +12,7 @@ if pandoc.found() output: manpage, capture: true, install: true, - install_dir: join_paths(get_option('mandir'), 'man' + s) + install_dir: join_paths(get_option('mandir'), 'man' + s.split('.')[-1]) ) endforeach endif -- 2.52.0