Skip to content

Commit d001927

Browse files
authored
Merge pull request #464 from igaw/fix-man-page-dir
doc: Install pre-compiled man pages to the correct path
2 parents bae364f + f64f8c7 commit d001927

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)