[git] gnupg-doc - branch, master, updated. fb85cfe7f6df8bde8e942d97fb42d93630a7c3c8

by Werner Koch cvs at cvs.gnupg.org
Wed Jan 30 18:18:09 CET 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GnuPG website and other docs".

The branch, master has been updated
       via  fb85cfe7f6df8bde8e942d97fb42d93630a7c3c8 (commit)
      from  08fb910ec866071549b51845630ff4db7e6a93a1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fb85cfe7f6df8bde8e942d97fb42d93630a7c3c8
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Jan 30 18:17:52 2019 +0100

    swdb: Try to detect duplicate entries

diff --git a/web/Makefile b/web/Makefile
index e53d091..aba48d1 100644
--- a/web/Makefile
+++ b/web/Makefile
@@ -8,11 +8,20 @@ swdb.lst: swdb.mac
 	                    {print $$2, $$3} \
 	    ' swdb.mac >swdb.lst
 
-swdb.lst.sig: swdb.lst
+swdb.lst.sig: swdb.lst signcheck
 	gpg -sbu 0x249B39D24F25E3B6 swdb.lst
 
+signcheck: swdb.lst
+	@set -e; \
+        tmp="$$(awk '$$1~/^.*_ver/{print $$1}' swdb.lst \
+            |sort|uniq -c|sort -nr|head -1|cut -b 1-7)"; \
+	if [ "$$tmp" -ne 1 ]; then \
+	  echo "ERROR: Duplicate version numbers found" >&2; \
+          exit 1; \
+        fi
+
 upload: swdb.lst.sig
 	scp swdb.lst.sig swdb.lst playfair.gnupg.org:/var/www/git/versions.gnupg.org/htdocs/
 	scp swdb.lst.sig swdb.lst webbuilder at trithemius.gnupg.org:/var/www/www/www.gnupg.org/htdocs/
 
-.PHONY: upload all
+.PHONY: upload all signcheck

-----------------------------------------------------------------------

Summary of changes:
 web/Makefile | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
The GnuPG website and other docs
http://git.gnupg.org




More information about the Gnupg-commits mailing list