mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
build: Create *.swdb file during make distcheck.
* Makefile.am (distcheck-hook): New. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
458c2f2d32
commit
2b8c9181a7
14
Makefile.am
14
Makefile.am
@ -83,6 +83,20 @@ dist_doc_DATA = README
|
|||||||
dist-hook: gen-ChangeLog
|
dist-hook: gen-ChangeLog
|
||||||
echo "$(VERSION)" > $(distdir)/VERSION
|
echo "$(VERSION)" > $(distdir)/VERSION
|
||||||
|
|
||||||
|
distcheck-hook:
|
||||||
|
set -e; ( \
|
||||||
|
pref="#+macro: gnupg_" ;\
|
||||||
|
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
|
gen_start_date = 2011-12-01T06:00:00
|
||||||
.PHONY: gen-ChangeLog
|
.PHONY: gen-ChangeLog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user