aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2020-01-07 12:38:21 -0800
committerGerald Combs <gerald@wireshark.org>2020-01-07 23:56:28 +0000
commit44b0cb187d63668b83a667af04f9bb7ff45333ca (patch)
tree010311fc9dfb6aff11f4697c0df584351099f3c9
parent3c5480a2c0e50244feb2731b1c51283858af78f0 (diff)
Docs: Ensure that the API reference has the proper permissions.
Set our file permissions before building the wsar_html_zip target. Change-Id: I660bf87891a0c8bbebfd497984617bd1d294bf10 Reviewed-on: https://code.wireshark.org/review/35685 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r--CMakeLists.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 917fadee07..2e54084579 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3243,9 +3243,22 @@ if (DOXYGEN_EXECUTABLE)
COMMAND ${DOXYGEN_EXECUTABLE} doxygen.cfg
)
+ if (WIN32)
+ add_custom_target(wsar_html_perms DEPENDS wsar_html)
+ else()
+ add_custom_target(wsar_html_perms
+ COMMAND find wsar_html
+ -type d
+ -exec chmod 755 "{}" +
+ COMMAND find wsar_html
+ -type f
+ -exec chmod 644 "{}" +
+ DEPENDS wsar_html)
+ endif()
+
add_custom_target(wsar_html_zip
COMMAND ${CMAKE_COMMAND} -E tar "cfv" "wsar_html.zip" --format=zip wsar_html
- DEPENDS wsar_html
+ DEPENDS wsar_html_perms
)
set_target_properties(wsar_html wsar_html_zip PROPERTIES
FOLDER "Docs"