diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-01-07 13:51:07 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-01-07 15:37:00 +0100 |
commit | d821feddac744c97486e662f4c7f6d00119595a0 (patch) | |
tree | d24949f38ae11f5c7e8f4d8fe62373e8b43a02f6 | |
parent | 28a4836e2b1437e61cce4a7e39272dcd9f845103 (diff) | |
download | mariadb-git-d821feddac744c97486e662f4c7f6d00119595a0.tar.gz |
MDEV-14938 make buildbot to include galera into bintars
allow injecting extra files into the bintar
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | cmake/cpack_tgz.cmake | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 67216e0e443..8eadfc20f07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -394,6 +394,7 @@ IF(WITH_UNIT_TESTS) ENDIF() ENDIF() +INCLUDE(cpack_tgz) INCLUDE(cpack_rpm) INCLUDE(cpack_deb) diff --git a/cmake/cpack_tgz.cmake b/cmake/cpack_tgz.cmake new file mode 100644 index 00000000000..7dd9f397189 --- /dev/null +++ b/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() |