aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/wix
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2019-02-11 14:24:18 -0800
committerGerald Combs <gerald@wireshark.org>2019-02-14 23:11:15 +0000
commit23c9a1e036445c17ec4bbc5d0fcbea4f588253c1 (patch)
tree37fa8cffa8ae7a2fd2cf42e3a1d85749ec3a40f3 /packaging/wix
parentef0ef16c30a8a217645e06df47eb4e5718dabb0b (diff)
Convert the FAQ to Asciidoctor and remove old help files.
Convert our self-generating FAQ to Asciidoctor via the following steps: - `help/faq.py > /tmp/faq.html`. - `pandoc -t asciidoc -o docbook/faq.adoc /tmp/faq.html`. - Manually clean up the markup using a text editor. Question and answer content was left intact. Removing or updating obsolete content will have to be done in a separate change. The Asciidoctor project uses the .adoc extension, so start using it here as well. The contents of the "help" directory appear to have been used for offline support in help_url.c, but that functionality was removed in 2008 in 242e3b78bc. Its content is covered in the User's Guide and man pages so remove it. Change-Id: I9060eefe97cfc137f8b414077c30f814379b576a Reviewed-on: https://code.wireshark.org/review/32014 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'packaging/wix')
-rw-r--r--packaging/wix/CMakeLists.txt3
-rw-r--r--packaging/wix/ComponentGroups.wxi53
-rw-r--r--packaging/wix/Features.wxi7
3 files changed, 17 insertions, 46 deletions
diff --git a/packaging/wix/CMakeLists.txt b/packaging/wix/CMakeLists.txt
index abff036480..7011f0f7ef 100644
--- a/packaging/wix/CMakeLists.txt
+++ b/packaging/wix/CMakeLists.txt
@@ -58,7 +58,7 @@ set(PROGRAM_NAME ${CMAKE_PROJECT_NAME})
file(TO_NATIVE_PATH "${CMAKE_SOURCE_DIR}" TOP_SRC_DIR)
# STAGING_DIR depends on the build configuration so we pass it
# on the command line below.
-file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/docbook" USER_GUIDE_DIR)
+file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/docbook" DOCBOOK_DIR)
if(WIRESHARK_TARGET_PLATFORM STREQUAL "win32")
set(TARGET_MACHINE x86)
elseif(WIRESHARK_TARGET_PLATFORM STREQUAL "win64")
@@ -264,6 +264,7 @@ macro( ADD_WIX_PACKAGE_TARGET )
${WIX_FILES}
copy_data_files
user_guide_chm
+ faq_html
)
set_target_properties(wix_package_prep PROPERTIES FOLDER "Packaging")
diff --git a/packaging/wix/ComponentGroups.wxi b/packaging/wix/ComponentGroups.wxi
index ba4709fc59..03f4caf851 100644
--- a/packaging/wix/ComponentGroups.wxi
+++ b/packaging/wix/ComponentGroups.wxi
@@ -221,44 +221,6 @@
</ComponentGroup>
</Fragment>
- <!-- Help files -->
- <Fragment>
- <DirectoryRef Id="dirHelp">
- <Component Id="cmpHelp_toc" Guid="*">
- <File Id="filHelp_toc" KeyPath="yes" Source="$(var.Help.Dir)\toc" />
- </Component>
- <Component Id="cmpHelp_overview_txt" Guid="*">
- <File Id="filHelp_overview_txt" KeyPath="yes" Source="$(var.Help.Dir)\overview.txt" />
- </Component>
- <Component Id="cmpHelp_getting_started_txt" Guid="*">
- <File Id="filHelp_getting_started_txt" KeyPath="yes" Source="$(var.Help.Dir)\getting_started.txt" />
- </Component>
- <Component Id="cmpHelp_capturing_txt" Guid="*">
- <File Id="filHelp_capturing_txt" KeyPath="yes" Source="$(var.Help.Dir)\capturing.txt" />
- </Component>
- <Component Id="cmpHelp_capture_filters_txt" Guid="*">
- <File Id="filHelp_capture_filters_txt" KeyPath="yes" Source="$(var.Help.Dir)\capture_filters.txt" />
- </Component>
- <Component Id="cmpHelp_display_filters_txt" Guid="*">
- <File Id="filHelp_display_filters_txt" KeyPath="yes" Source="$(var.Help.Dir)\display_filters.txt" />
- </Component>
- <Component Id="cmpHelp_faq_txt" Guid="*">
- <File Id="filHelp_faq_txt" KeyPath="yes" Source="$(var.Help.Dir)\faq.txt" />
- </Component>
- </DirectoryRef>
- </Fragment>
- <Fragment>
- <ComponentGroup Id="CG.Help">
- <ComponentRef Id="cmpHelp_toc" />
- <ComponentRef Id="cmpHelp_overview_txt" />
- <ComponentRef Id="cmpHelp_getting_started_txt" />
- <ComponentRef Id="cmpHelp_capturing_txt" />
- <ComponentRef Id="cmpHelp_capture_filters_txt" />
- <ComponentRef Id="cmpHelp_display_filters_txt" />
- <ComponentRef Id="cmpHelp_faq_txt" />
- </ComponentGroup>
- </Fragment>
-
<!-- TShark -->
<Fragment>
<DirectoryRef Id="INSTALLFOLDER">
@@ -569,18 +531,27 @@
</ComponentGroup>
</Fragment>
- <?ifdef USER_GUIDE_DIR?>
+ <?ifdef DOCBOOK_DIR?>
<!-- User Guide -->
<Fragment>
<DirectoryRef Id="INSTALLFOLDER">
<Component Id="cmpUserGuide_chm" Guid="*">
- <File Id="filUserGuide_chm" KeyPath="yes" Source="$(var.USER_GUIDE_DIR)\user-guide.chm" />
+ <File Id="filUserGuide_chm" KeyPath="yes" Source="$(var.DOCBOOK_DIR)\user-guide.chm" />
+ </Component>
+ </DirectoryRef>
+ </Fragment>
+ <!-- FAQ -->
+ <Fragment>
+ <DirectoryRef Id="INSTALLFOLDER">
+ <Component Id="cmpFAQ_html" Guid="*">
+ <File Id="filFAQ_html" KeyPath="yes" Source="$(var.DOCBOOK_DIR)\faq.html" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
- <ComponentGroup Id="CG.UserGuide">
+ <ComponentGroup Id="CG.Documentation">
<ComponentRef Id="cmpUserGuide_chm" />
+ <ComponentRef Id="cmpFAQ_html" />
</ComponentGroup>
</Fragment>
<?endif?>
diff --git a/packaging/wix/Features.wxi b/packaging/wix/Features.wxi
index 102de25704..8f441fda24 100644
--- a/packaging/wix/Features.wxi
+++ b/packaging/wix/Features.wxi
@@ -20,7 +20,6 @@
<ComponentGroupRef Id="CG.Dtds" />
<ComponentGroupRef Id="CG.Tpncp" />
<ComponentGroupRef Id="CG.Wimaxasncp" />
- <ComponentGroupRef Id="CG.Help" />
<ComponentGroupRef Id="CG.RequiredDependencies" />
</Feature>
@@ -91,9 +90,9 @@
<ComponentGroupRef Id="CG.Tools.Udpdump" />
</Feature>
</Feature>
- <?ifdef USER_GUIDE_DIR?>
- <Feature Id="Fe.UserGuide" Title="User's Guide" Level="1" AllowAdvertise="yes" Display="expand" Description="Install an offline copy of the User's Guide.">
- <ComponentGroupRef Id="CG.UserGuide" />
+ <?ifdef DOCBOOK_DIR?>
+ <Feature Id="Fe.Documentation" Title="Documentation" Level="1" AllowAdvertise="yes" Display="expand" Description="Install an offline copy of the User's Guide and FAQ.">
+ <ComponentGroupRef Id="CG.Documentation" />
</Feature>
<?endif?>
<Feature Id="VCRedist" Title="Visual C++ Runtime" AllowAdvertise="no" Display="hidden" Level="1">