Fix index.html symlink
authorDmitry Marakasov <amdmi3@amdmi3.ru>
Wed, 31 Aug 2022 16:20:16 +0000 (19:20 +0300)
committerColin Clark <colin.clark@cclark.uk>
Thu, 1 Sep 2022 12:15:54 +0000 (13:15 +0100)
Create relative symlink, as absolute one will point to temporary build directory

doc/meson.build

index fb7f8d6..f8fa523 100644 (file)
@@ -16,13 +16,12 @@ subdir('html')
 guideindex_xml = files('docbook/GuideIndex.xml')
 destdir = join_paths(meson.current_build_dir(), 'html/')
 iconsdir = join_paths(meson.current_source_dir(), 'icons/')
-guideindex_html = join_paths(destdir, 'GuideIndex.html')
 guideindex_ln = join_paths(destdir, 'index.html')
 
 # Not-found notification already handled by ../meson.build
 if gnome_doc_tool.found()
     run_command(gnome_doc_tool, 'html', '-o', destdir, '-p', iconsdir, guideindex_xml, check : false)
-    run_command(find_program('ln'), '-s', '-f', guideindex_html, guideindex_ln, check : false)
+    run_command(find_program('ln'), '-s', '-f', 'GuideIndex.html', guideindex_ln, check : false)
 endif
 
 install_subdir(destdir, install_dir : helpdir, exclude_directories : 'lua-api/latex')