CMake: Use "'" instead of "’" in our guide filenames.

Use an apostrophe instead of RIGHT SINGLE QUOTATION MARK in our PDF and
EPUB filenames. Some programs (notably Okular) can't open filenames with
extended characters, at least on Windows.
This commit is contained in:
Gerald Combs 2021-08-26 15:44:23 -07:00 committed by Wireshark GitLab Utility
parent 5fcd5f3b9f
commit 8c4543373a
3 changed files with 13 additions and 12 deletions

View File

@ -487,10 +487,10 @@ Documentation:
- wsug_html_chunked.zip - wsug_html_chunked.zip
- wsdg_html.zip - wsdg_html.zip
- wsdg_html_chunked.zip - wsdg_html_chunked.zip
- "Wireshark Users Guide.pdf" - "Wireshark User's Guide.pdf"
- "Wireshark Developers Guide.pdf" - "Wireshark Developer's Guide.pdf"
- "Wireshark Users Guide.epub" - "Wireshark User's Guide.epub"
- "Wireshark Developers Guide.epub" - "Wireshark Developer's Guide.epub"
needs: [] needs: []

View File

@ -26,7 +26,7 @@ FIND_PROGRAM(ASCIIDOCTOR_EXECUTABLE
if(ASCIIDOCTOR_EXECUTABLE) if(ASCIIDOCTOR_EXECUTABLE)
# As of 2.2.0 the AsciidctorJ wrapper script sets -Xmn128m -Xms256m -Xmx256m. # As of 2.2.0 the AsciidctorJ wrapper script sets -Xmn128m -Xms256m -Xmx256m.
# This isn't enough for the User's Guide. # This isn't enough for the User's Guide.
set(_asciidoctorj_opts -Xmn256m -Xms512m -Xmx2048m $ENV{ASCIIDOCTORJ_OPTS}) set(_asciidoctorj_opts "-Xmn256m -Xms512m -Xmx2048m $ENV{ASCIIDOCTORJ_OPTS}")
execute_process( COMMAND ${ASCIIDOCTOR_EXECUTABLE} --version OUTPUT_VARIABLE _ad_full_version ) execute_process( COMMAND ${ASCIIDOCTOR_EXECUTABLE} --version OUTPUT_VARIABLE _ad_full_version )
separate_arguments(_ad_full_version) separate_arguments(_ad_full_version)
list(GET _ad_full_version 1 ASCIIDOCTOR_VERSION) list(GET _ad_full_version 1 ASCIIDOCTOR_VERSION)
@ -50,7 +50,7 @@ if(ASCIIDOCTOR_EXECUTABLE)
) )
set(_asciidoctor_common_command set(_asciidoctor_common_command
${CMAKE_COMMAND} -E env TZ=UTC ASCIIDOCTORJ_OPTS="${_asciidoctorj_opts}" ${CMAKE_COMMAND} -E env TZ=UTC ASCIIDOCTORJ_OPTS=${_asciidoctorj_opts}
${ASCIIDOCTOR_EXECUTABLE} ${ASCIIDOCTOR_EXECUTABLE}
${_asciidoctor_common_args} ${_asciidoctor_common_args}
) )
@ -144,7 +144,7 @@ if(ASCIIDOCTOR_EXECUTABLE)
if(ASCIIDOCTOR_PDF_EXECUTABLE) if(ASCIIDOCTOR_PDF_EXECUTABLE)
set(_asciidoctor_pdf_common_command set(_asciidoctor_pdf_common_command
${CMAKE_COMMAND} -E env TZ=UTC ASCIIDOCTORJ_OPTS="${_asciidoctorj_opts}" ${CMAKE_COMMAND} -E env TZ=UTC "ASCIIDOCTORJ_OPTS=${_asciidoctorj_opts}"
${ASCIIDOCTOR_PDF_EXECUTABLE} ${ASCIIDOCTOR_PDF_EXECUTABLE}
--require asciidoctor-pdf --require asciidoctor-pdf
--backend pdf --backend pdf
@ -160,12 +160,12 @@ if(ASCIIDOCTOR_EXECUTABLE)
OUTPUT OUTPUT
${_output_pdf} ${_output_pdf}
COMMAND ${_asciidoctor_pdf_common_command} COMMAND ${_asciidoctor_pdf_common_command}
--out-file ${_output_pdf} --out-file "${_output_pdf}"
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource} ${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
DEPENDS DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource} ${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
${ARGN} ${ARGN}
VERBATIM
) )
add_custom_target(${_generate_pdf} DEPENDS ${_output_pdf}) add_custom_target(${_generate_pdf} DEPENDS ${_output_pdf})
set_asciidoctor_target_properties(${_generate_pdf}) set_asciidoctor_target_properties(${_generate_pdf})
@ -210,11 +210,12 @@ if(ASCIIDOCTOR_EXECUTABLE)
OUTPUT OUTPUT
${_output_epub} ${_output_epub}
COMMAND ${_asciidoctor_epub_common_command} COMMAND ${_asciidoctor_epub_common_command}
--out-file ${_output_epub} --out-file "${_output_epub}"
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource} ${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
DEPENDS DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource} ${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
${ARGN} ${ARGN}
VERBATIM
) )
add_custom_target(${_generate_epub} DEPENDS ${_output_epub}) add_custom_target(${_generate_epub} DEPENDS ${_output_epub})
set_asciidoctor_target_properties(${_generate_epub}) set_asciidoctor_target_properties(${_generate_epub})

View File

@ -43,7 +43,7 @@ add_custom_target(update_tools_help
) )
set_docbook_target_properties(update_tools_help) set_docbook_target_properties(update_tools_help)
set(WSUG_TITLE "Wireshark Users Guide") set(WSUG_TITLE "Wireshark User's Guide")
set(WSUG_FILES set(WSUG_FILES
wsug_src/WSUG_app_files.adoc wsug_src/WSUG_app_files.adoc
@ -223,7 +223,7 @@ set(WSUG_GRAPHICS
${COMMON_GRAPHICS} ${COMMON_GRAPHICS}
) )
set(WSDG_TITLE "Wireshark Developers Guide") set(WSDG_TITLE "Wireshark Developer's Guide")
set(WSDG_FILES set(WSDG_FILES
wsdg_src/WSDG_chapter_asn2wrs.adoc wsdg_src/WSDG_chapter_asn2wrs.adoc