summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 || \