From: Daniel Wagner Date: Tue, 30 Aug 2022 14:03:56 +0000 (+0200) Subject: doc: Install pre-compiled man pages to the correct path X-Git-Tag: v1.2~36^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f64f8c78dda3af22537f37d688970b0b5572b312;p=users%2Fsagi%2Flibnvme.git doc: Install pre-compiled man pages to the correct path The install_subdir('man', ...) command installs the man pages under $mandir/man/ instead of $mandir. Use and external script to get the list of man pages to avoid having to list all the man pages explicitly. Signed-off-by: Daniel Wagner --- diff --git a/doc/list-pre-compiled.sh b/doc/list-pre-compiled.sh new file mode 100755 index 00000000..c31caf90 --- /dev/null +++ b/doc/list-pre-compiled.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +for i in man/*.2; do + echo $i +done diff --git a/doc/meson.build b/doc/meson.build index d716c8b5..60a92ed4 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -85,7 +85,10 @@ if want_docs != 'false' endforeach else if want_docs == 'all' or want_docs == 'man' - install_subdir('man', install_dir: mandir) + list_pre_compiled = find_program('list-pre-compiled.sh') + m = run_command(list_pre_compiled, check: true) + man_pages = m.stdout().strip().split('\n') + install_data(man_pages, install_dir: mandir) endif endif endif