Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include PS images for docs in releases #6533

Merged
merged 1 commit into from
Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions doc/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
#-------------------------------------------------------------------------------

if (SPHINX_FOUND)
# Copy PS sources for gmt release
if (GIT_FOUND AND HAVE_GIT_VERSION)
add_custom_target (_examples_images_release
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/images/
${GMT_RELEASE_PREFIX}/doc/examples/images
DEPENDS git_export_release)
add_depend_to_target (gmt_release _examples_images_release)
endif (GIT_FOUND AND HAVE_GIT_VERSION)

# Convert figures to PNG
file (GLOB _examples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/images/*.ps")
set (_examples_png)
Expand Down
10 changes: 10 additions & 0 deletions doc/scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
#-------------------------------------------------------------------------------

if (SPHINX_FOUND)
# Copy PS sources for gmt release
if (GIT_FOUND AND HAVE_GIT_VERSION)
add_custom_target (_scripts_images_release
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/images/
${GMT_RELEASE_PREFIX}/doc/scripts/images
DEPENDS git_export_release)
add_depend_to_target (gmt_release _scripts_images_release)
endif (GIT_FOUND AND HAVE_GIT_VERSION)

# Convert PS to PNG
file (GLOB _scripts_ps2png RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/images/*.ps")
set (_scripts_png)
Expand Down