[Pkg-gnupg-commit] [gnupg1] 24/35: build: Create a swdb file during "make distcheck".

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Aug 29 14:48:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg1.

commit 56792b1191a31c8409d7dcdb33b87a92f0e65ab2
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Aug 17 14:39:26 2016 +0200

    build: Create a swdb file during "make distcheck".
    
    * Makefile.am (distcheck-hook): New.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 Makefile.am | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index 1c6311b..44adf6a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -77,6 +77,19 @@ dist-hook: gen-ChangeLog
 	    > $(distdir)/gnupg.spec
 	echo "$(VERSION)" > $(distdir)/VERSION
 
+distcheck-hook:
+	set -e; ( \
+	pref="#+macro: gnupg1_" ;\
+	reldate="$$(date -u +%Y-%m-%d)" ;\
+        echo "$${pref}ver  $(PACKAGE_VERSION)"  ;\
+        echo "$${pref}date $${reldate}" ;\
+        list='$(DIST_ARCHIVES)'; for i in $$list; do \
+	  case "$$i" in *.tar.bz2) \
+            echo "$${pref}size $$(wc -c <$$i|awk '{print int($$1/1024)}')k" ;\
+	    echo "$${pref}sha1 $$(sha1sum <$$i|cut -d' ' -f1)" ;\
+	    echo "$${pref}sha2 $$(sha256sum <$$i|cut -d' ' -f1)" ;;\
+	  esac;\
+	done ) | tee $(distdir).swdb
 
 gen_start_date = 2011-12-01T06:00:00
 .PHONY: gen-ChangeLog

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg1.git



More information about the Pkg-gnupg-commit mailing list