Bug fix: Meson - symlink missing
authorColin Clark <colin.clark@cclark.uk>
Tue, 19 Jul 2022 08:27:13 +0000 (09:27 +0100)
committerColin Clark <colin.clark@cclark.uk>
Tue, 19 Jul 2022 08:27:13 +0000 (09:27 +0100)
The symlink from GuideIndex.html to index.html was missing

doc/meson.build

index e9025b1..f5a6518 100644 (file)
 
 subdir('html')
 
-guideindex = files('docbook/GuideIndex.xml')
+guideindex_xml = files('docbook/GuideIndex.xml')
 destdir = join_paths(meson.project_build_root(), 'doc', 'html/')
 iconsdir = join_paths(meson.project_source_root(), 'doc', 'icons/')
+guideindex_html = join_paths(destdir, 'GuideIndex.html')
+guideindex_ln = join_paths(destdir, 'index.html')
 
-run_command(gnome_doc_tool, 'html', '-o', destdir, '-p', iconsdir, guideindex, check : false)
+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)
 
 install_subdir(destdir, install_dir : helpdir, install_tag : 'help')