Skip to content

Commit f64f8c7

Browse files
committed
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 <[email protected]>
1 parent 0e4d1ce commit f64f8c7

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

doc/list-pre-compiled.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
for i in man/*.2; do
4+
echo $i
5+
done

doc/meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ if want_docs != 'false'
8585
endforeach
8686
else
8787
if want_docs == 'all' or want_docs == 'man'
88-
install_subdir('man', install_dir: mandir)
88+
list_pre_compiled = find_program('list-pre-compiled.sh')
89+
m = run_command(list_pre_compiled, check: true)
90+
man_pages = m.stdout().strip().split('\n')
91+
install_data(man_pages, install_dir: mandir)
8992
endif
9093
endif
9194
endif

0 commit comments

Comments
 (0)