Skip to content

Commit

Permalink
build: Create GPG signatures as part of release target
Browse files Browse the repository at this point in the history
Create detached ASCII format GPG signatures for the to be released
tarballs.

Signed-off-by: Tobias Klauser <[email protected]>
  • Loading branch information
tklauser committed Oct 7, 2013
1 parent 0c0090c commit bcd676b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cmds
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ GIT_REM = git ls-files -o | xargs rm -rf
GIT_PEOPLE = git log --no-merges $(shell git tag | tail -n2 | head -n1)..HEAD | grep Author: | cut -d: -f2 | \
cut -d\< -f1 | sort | uniq -c | sort -nr
GIT_VERSION = git describe --always

# GPG related
GPG_SIGN = gpg -a --output ../netsniff-ng-$(VERSION_SHORT).tar.$(1).sign --detach-sig \
../netsniff-ng-$(VERSION_SHORT).tar.$(1)
7 changes: 6 additions & 1 deletion Misc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ announcement:
$(Q)echo -e "\nGit changelog since last release:\n" >> .MAIL_MSG
$(GIT_LOG) >> .MAIL_MSG

release: tag announcement tarball
sign:
$(call GPG_SIGN,gz)
$(call GPG_SIGN,bz2)
$(call GPG_SIGN,xz)

release: tag announcement tarball sign
$(Q)echo "Released $(bold)$(VERSION_SHORT)$(normal)"

FIND_SOURCE_FILES = ( git ls-files '*.[hcS]' 2>/dev/null || \
Expand Down

0 comments on commit bcd676b

Please sign in to comment.