Verified Commit d3dfda60 authored by SZPYRKA Jean-Luc's avatar SZPYRKA Jean-Luc
Browse files

fixed the filename used after decompression

parent 3d5aab50
Pipeline #130722 passed with stage
in 4 minutes and 37 seconds
...@@ -38,8 +38,8 @@ function(tag_clone module url) ...@@ -38,8 +38,8 @@ function(tag_clone module url)
# final destination of tag files # final destination of tag files
set(final_directory ${CMAKE_BINARY_DIR}/doc/_build) set(final_directory ${CMAKE_BINARY_DIR}/doc/_build)
get_filename_component(final__filename ${module} NAME_WE) get_filename_component(final_filename ${module} NAME_WE)
set(final__filename ${final__filename}.tag) set(final_filename ${final_filename}.tag)
# store here # store here
if(NOT EXISTS "${output_directory}") if(NOT EXISTS "${output_directory}")
...@@ -52,8 +52,8 @@ function(tag_clone module url) ...@@ -52,8 +52,8 @@ function(tag_clone module url)
endif() endif()
# if tag file already exists -> do nothing # if tag file already exists -> do nothing
if(EXISTS "${final_directory}/${final__filename}") if(EXISTS "${final_directory}/${final_filename}")
message("Tag file (${final__filename}) already present: skipping") message("Tag file (${final_filename}) already present: skipping")
return() return()
endif() endif()
...@@ -74,13 +74,14 @@ function(tag_clone module url) ...@@ -74,13 +74,14 @@ function(tag_clone module url)
gunzip -f ${output_filename} gunzip -f ${output_filename}
WORKING_DIRECTORY ${output_directory} WORKING_DIRECTORY ${output_directory}
) )
string(REGEX REPLACE ".gz$" "" output_filename ${output_filename})
endif() endif()
# standard name for tag files # standard name for tag files
message("Renaming to: ${final_directory}/${final__filename}") message("Renaming to: ${final_directory}/${final_filename}")
file(RENAME file(RENAME
"${output_directory}/${output_filename}" "${output_directory}/${output_filename}"
"${final_directory}/${final__filename}" "${final_directory}/${final_filename}"
) )
endfunction() endfunction()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment