[Pkg-gnupg-commit] [gpgme] 389/412: build: Create swdb file.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:27:26 UTC 2016


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

dkg pushed a commit to branch master
in repository gpgme.

commit df7e92b4d585b7dce919c5a3aab9524f6e183cbe
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Sep 20 19:43:49 2016 +0200

    build: Create swdb file.
    
    * Makefile.am (distcheck-hook): New.
    (dist-hook): s/VERSION/PACKAGE_VERSION/ for future compatibility.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 Makefile.am | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index cb22a91..72b8ee9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -39,9 +39,23 @@ SUBDIRS = src ${tests} doc lang
 # to be used for patch's Prereq: feature.
 dist-hook: gen-ChangeLog
 	@set -e; \
-	sed -e 's/@pkg_version@/$(VERSION)/g' \
+	sed -e 's/@pkg_version@/$(PACKAGE_VERSION)/g' \
 	    $(top_srcdir)/gpgme.spec.in  > $(distdir)/gpgme.spec
-	echo "$(VERSION)" > $(distdir)/VERSION
+	echo "$(PACKAGE_VERSION)" > $(distdir)/VERSION
+
+distcheck-hook:
+	set -e; ( \
+	pref="#+macro: gpgme_" ;\
+	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-01T00:00:00

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



More information about the Pkg-gnupg-commit mailing list