]> git.mdlowis.com Git - proto/labwc.git/commitdiff
docs: move manpages to proper section directories
authorJan Beich <jbeich@FreeBSD.org>
Thu, 4 Mar 2021 06:21:45 +0000 (06:21 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 4 Mar 2021 08:40:36 +0000 (08:40 +0000)
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

index 718c24bb8284a2fab581b2477eff0c4329a99ccb..e506ee5671337c9f6bba39b157792ff5efea34e4 100644 (file)
@@ -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