Fix wrong absolute path to html doc outputs
This amends the previous commit which did not adjust all the paths correctly.
@@ -76,14 +76,13 @@ if (ASCIIDOC_EXE)
file (GLOB_RECURSE adoc_files *.adoc)
foreach (source ${src}/qdmanage.8 ${src}/qdrouterd.8 ${src}/qdstat.8 ${bin}/qdrouterd.conf.5)
get_filename_component (name ${source} NAME)
- get_filename_component (dir ${source} PATH)
string(FIND ${name} "." dot)
if (dot GREATER 0)
string (LENGTH ${name} length)
math (EXPR desired_length "${length}-2")
string (SUBSTRING ${name} "0" ${desired_length} name)
endif ()
- set (output ${bin}/${dir}/${name}.html)
+ set (output ${bin}/${name}.html)
add_custom_command (
OUTPUT ${output} ${output}.in
# Pretty .html for direct viewing.
@@ -101,7 +100,6 @@ if (ASCIIDOC_EXE)
# Generate man pages.
foreach (source ${src}/qdmanage.8 ${src}/qdrouterd.8 ${src}/qdstat.8 ${bin}/qdrouterd.conf.5)
get_filename_component (name ${source} NAME)
- get_filename_component (dir ${source} PATH)
string(REGEX REPLACE ".*\\.([0-9])$" "\\1" section ${source}) # Man section number
set (output ${bin}/${name})
add_custom_command (
