Skip to content

Commit 064d9ef

Browse files
mbieblkeszybz
authored andcommitted
meson: create index.html symlink pointing at systemd.index.html (systemd#5870)
Re-use bits from 488477d to create the index.html symlink. Fixes systemd#5862
1 parent 2f10b22 commit 064d9ef

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

man/meson.build

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,21 @@ foreach tuple : [['systemd.directives', '7', systemd_directives_xml],
139139
install : want_html and have_lxml,
140140
install_dir : join_paths(docdir, 'html'))
141141
html_pages += [p2]
142+
143+
if html == 'systemd.index.html'
144+
htmlalias = 'index.html'
145+
p3 = custom_target(
146+
htmlalias,
147+
input : p2,
148+
output : htmlalias,
149+
command : ['ln', '-fs', html, '@OUTPUT@'])
150+
if want_html
151+
dst = join_paths(docdir, 'html', htmlalias)
152+
cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst)
153+
meson.add_install_script('sh', '-c', cmd)
154+
endif
155+
html_pages += [p3]
156+
endif
142157
endforeach
143158

144159
# cannot use run_target until https://github.com/mesonbuild/meson/issues/1644 is resolved

0 commit comments

Comments
 (0)