Skip to content

Commit

Permalink
MDEV-14938 make buildbot to include galera into bintars
Browse files Browse the repository at this point in the history
allow injecting extra files into the bintar
  • Loading branch information
vuvova committed Jan 7, 2022
1 parent 28a4836 commit d821fed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -394,6 +394,7 @@ IF(WITH_UNIT_TESTS)
ENDIF()
ENDIF()

INCLUDE(cpack_tgz)
INCLUDE(cpack_rpm)
INCLUDE(cpack_deb)

Expand Down
10 changes: 10 additions & 0 deletions cmake/cpack_tgz.cmake
@@ -0,0 +1,10 @@
IF(NOT RPM AND NOT DEB)
#
# use -DEXTRA_FILES='/path/to/file=where/to/install;/bin/dd=bin;...'
#
FOREACH(f ${EXTRA_FILES})
STRING(REGEX REPLACE "=.*$" "" from ${f})
STRING(REGEX REPLACE "^.*=" "" to ${f})
INSTALL(PROGRAMS ${from} DESTINATION ${to})
ENDFOREACH()
ENDIF()

0 comments on commit d821fed

Please sign in to comment.