Add swdb target
authorAndre Heinecke <aheinecke@intevation.de>
Fri, 8 Dec 2017 07:26:13 +0000 (08:26 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Fri, 8 Dec 2017 07:26:13 +0000 (08:26 +0100)
* src/Makefile.am (gpg4win.swdb): New target.

src/Makefile.am

index f4458aa..528e3ed 100644 (file)
@@ -703,7 +703,28 @@ else
 all_full =
 endif
 
-all-local: $(all_full) $(all_light) $(all_vanilla) $(all_src)
+gpg4win.swdb: $(all_full) $(all_light) $(all_vanilla) $(all_src) NEWS.de NEWS.en
+       set -e; ( \
+       pref="#+macro: gpg4win_" ;\
+       reldate="$$(date -u +%Y-%m-%d)" ;\
+       echo "$${pref}ver  $(VERSION)"  ;\
+       echo "$${pref}date $${reldate}" ;\
+       i=$(top_srcdir)/gpg4win-$(VERSION).tar.bz2; \
+       echo "$${pref}src_size $$(wc -c <$$i|awk '{print int($$1/1024)}')k" ;\
+       echo "$${pref}src_sha1 $$(sha1sum <$$i|cut -d' ' -f1)" ;\
+       echo "$${pref}src_sha2 $$(sha256sum <$$i|cut -d' ' -f1)" ;\
+       j=installers/gpg4win-$(VERSION).exe ; \
+       echo "$${pref}exe_size $$(wc -c <$$j|awk '{print int($$1/1024)}')k" ;\
+       echo "$${pref}exe_sha1 $$(sha1sum <$$j|cut -d' ' -f1)" ;\
+       echo "$${pref}exe_sha2 $$(sha256sum <$$j|cut -d' ' -f1)" ;\
+       k=installers/gpg4win-src-$(VERSION).exe ; \
+       echo "$${pref}isrc_size $$(wc -c <$$k|awk '{print int($$1/1024)}')k" ;\
+       echo "$${pref}isrc_sha1 $$(sha1sum <$$k|cut -d' ' -f1)" ;\
+       echo "$${pref}isrc_sha2 $$(sha256sum <$$k|cut -d' ' -f1)" ;\
+       ) | tee $(distdir).swdb
+
+
+all-local: gpg4win.swdb
        @echo "###################################################"
        @echo " Gpg4win $(VERSION) successfully build!"
        @echo " Installers can be found under src/installers"