Skip to content

Commit

Permalink
Fix index.html symlink
Browse files Browse the repository at this point in the history
Create relative symlink, as absolute one will point to temporary build directory
  • Loading branch information
AMDmi3 authored and caclark committed Sep 1, 2022
1 parent 87042fa commit c5d7536
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/meson.build
Expand Up @@ -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')
Expand Down

0 comments on commit c5d7536

Please sign in to comment.