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>
This commit is contained in:
Gerald Combs 2020-01-07 12:38:21 -08:00
parent 3c5480a2c0
commit 44b0cb187d
1 changed files with 14 additions and 1 deletions

View File

@ -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"