From db681b066e4f157d4139330ef2f1c712ed7b62fa Mon Sep 17 00:00:00 2001 From: Olivier Stasse Date: Fri, 20 Sep 2013 05:05:18 +0200 Subject: [PATCH] [dist] Sign tarball. --- dist.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dist.cmake b/dist.cmake index 32a7352f5..0e5c9293a 100644 --- a/dist.cmake +++ b/dist.cmake @@ -26,6 +26,7 @@ MACRO(_SETUP_PROJECT_DIST) IF(UNIX) FIND_PROGRAM(TAR tar) + FIND_PROGRAM(GPG gpg) ADD_CUSTOM_TARGET(distdir COMMAND @@ -49,6 +50,9 @@ MACRO(_SETUP_PROJECT_DIST) COMMAND ${TAR} czf ${PROJECT_NAME}-${PROJECT_VERSION}.tar.gz ${PROJECT_NAME}-${PROJECT_VERSION}/ + && ${GPG} --detach-sign --armor -o + ${CMAKE_BINARY_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}.tar.gz.sig + ${CMAKE_BINARY_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}.tar.gz && rm -rf ${CMAKE_BINARY_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}/ WORKING_DIRECTORY ${CMAKE_BINARY_DIR} COMMENT "Generating tarball..."