diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 5fdee307..92b8af50 100644 --- a/Makefile.am +++ b/Makefile.am @@ -83,3 +83,16 @@ fetch-docs: maintainer/download-docs.sh .PHONY: gen-tarball-version gen-tarball-version: echo $(VERSION) > $(distdir)/.tarball-version + +DIGESTS = md5 sha1 sha512 +USE_GPG = yes + +dist-create-release: distcheck + for a in $(DIST_ARCHIVES); do \ + for d in $(DIGESTS); do \ + $${d}sum $${a} > $${a}.$${d}; \ + done; \ + if [ "$(USE_GPG)" = "yes" ]; then \ + gpg --detach-sign $${a}; \ + fi; \ + done |