This is an automated email from the ASF dual-hosted git repository.

jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/main by this push:
     new 753ea62  DISPATCH-1995 Fix wrong absolute path to html doc outputs 
(#1237)
753ea62 is described below

commit 753ea62ffde1de016128faac04d2fe3f6c7d67f3
Author: Jiri Daněk <jda...@redhat.com>
AuthorDate: Fri May 28 00:49:18 2021 +0200

    DISPATCH-1995 Fix wrong absolute path to html doc outputs (#1237)
    
    This amends the previous commit which did not adjust all the paths 
correctly.
---
 docs/man/CMakeLists.txt | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/docs/man/CMakeLists.txt b/docs/man/CMakeLists.txt
index f0cdcdf..876c511 100644
--- a/docs/man/CMakeLists.txt
+++ b/docs/man/CMakeLists.txt
@@ -76,20 +76,19 @@ 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.
       COMMAND ${ASCIIDOC_EXE} ${ADOC_FLAGS} -o ${output} ${source}.adoc
       # Raw .html.in body for inclusion in Qpid website.
-      COMMAND  ${ASCIIDOC_EXE} ${ADOC_FLAGS} -s -o ${output}.in ${source}.adoc
+      COMMAND ${ASCIIDOC_EXE} ${ADOC_FLAGS} -s -o ${output}.in ${source}.adoc
       DEPENDS ${source}.adoc ${generated_txt} ${adoc_files} 
${bin}/asciidoc.conf
       WORKING_DIRECTORY ${bin}
       )
@@ -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 (

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to