mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
meson: Handle man pages symlinks with a meson install script
This seems to be the common way to handle that, until meson decides to address #1602: https://github.com/mesonbuild/meson/issues/1602 Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
6826c60da5
commit
b15428d4bb
1 changed files with 2 additions and 9 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
# TODO How are symlinks installed by meson?
|
|
||||||
# We might need meson.add_install_script()
|
|
||||||
|
|
||||||
# man page name, section, [aliases]
|
# man page name, section, [aliases]
|
||||||
manpages = [
|
manpages = [
|
||||||
|
|
@ -57,13 +55,8 @@ foreach tuple : manpages
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach alias : aliases
|
foreach alias : aliases
|
||||||
link = custom_target(
|
dst = join_paths(mandirn, alias)
|
||||||
alias,
|
meson.add_install_script('ln', '-fs', man, dst)
|
||||||
output : alias,
|
|
||||||
command : ['ln', '-fs', man, '@OUTPUT@'],
|
|
||||||
install : true,
|
|
||||||
install_dir : mandirn,
|
|
||||||
)
|
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
if xmllint.found()
|
if xmllint.found()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue