Skip to content

Commit

Permalink
[dist] Sign tarball.
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Stasse committed Sep 20, 2013
1 parent 2cf7d27 commit db681b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
MACRO(_SETUP_PROJECT_DIST)
IF(UNIX)
FIND_PROGRAM(TAR tar)
FIND_PROGRAM(GPG gpg)

ADD_CUSTOM_TARGET(distdir
COMMAND
Expand All @@ -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..."
Expand Down

0 comments on commit db681b0

Please sign in to comment.