summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-10-07 15:00:30 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-10-07 15:00:30 +0200
commitbcd676be133e360c012b1279c1fcef9c7ede1ccf (patch)
tree21ccbc2a1b091c1f6b3011f90da86c53bbd5506b
parent0c0090c41ebe22e780dc42c16b3034d56ec52a65 (diff)
build: Create GPG signatures as part of release target
Create detached ASCII format GPG signatures for the to be released tarballs. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--Cmds4
-rw-r--r--Misc7
2 files changed, 10 insertions, 1 deletions
diff --git a/Cmds b/Cmds
index 704ab7e..c0e6032 100644
--- a/Cmds
+++ b/Cmds
@@ -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)
diff --git a/Misc b/Misc
index fa30bd3..08a92e2 100644
--- a/Misc
+++ b/Misc
@@ -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 || \