1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

meson: create index.html symlink pointing at systemd.index.html (#5870)

Re-use bits from 488477d101 to create the
index.html symlink.

Fixes #5862
This commit is contained in:
Michael Biebl 2017-05-01 17:02:17 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 2f10b22557
commit 064d9ef0d7

View File

@ -139,6 +139,21 @@ foreach tuple : [['systemd.directives', '7', systemd_directives_xml],
install : want_html and have_lxml,
install_dir : join_paths(docdir, 'html'))
html_pages += [p2]
if html == 'systemd.index.html'
htmlalias = 'index.html'
p3 = custom_target(
htmlalias,
input : p2,
output : htmlalias,
command : ['ln', '-fs', html, '@OUTPUT@'])
if want_html
dst = join_paths(docdir, 'html', htmlalias)
cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst)
meson.add_install_script('sh', '-c', cmd)
endif
html_pages += [p3]
endif
endforeach
# cannot use run_target until https://github.com/mesonbuild/meson/issues/1644 is resolved