]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: create index.html symlink pointing at systemd.index.html (#5870)
authorMichael Biebl <mbiebl@gmail.com>
Mon, 1 May 2017 15:02:17 +0000 (17:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 1 May 2017 15:02:17 +0000 (11:02 -0400)
Re-use bits from 488477d1011559078dbebfea18e22dcc1c9ca7ea to create the
index.html symlink.

Fixes #5862

man/meson.build

index abe6878022870affc4bbc8f958dfd9804446c574..361342bb75df6dbbfac99e40a9e576a0950804f5 100644 (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