diff options
author | Werner Koch <wk@gnupg.org> | 2011-12-01 10:51:36 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-12-01 11:09:02 +0100 |
commit | 2336b09779d313c1594acf6df3bd8a8486e90458 (patch) | |
tree | ebff394571ce00f0cbcee82114a516fc8a470545 /Makefile.am | |
parent | Fix pinpad input support (diff) | |
download | gnupg2-2336b09779d313c1594acf6df3bd8a8486e90458.tar.xz gnupg2-2336b09779d313c1594acf6df3bd8a8486e90458.zip |
Generate the ChangeLog from commit logs.
* scripts/gitlog-to-changelog: New script. Taken from gnulib.
* scripts/git-log-fix: New file.
* scripts/git-log-footer: New file.
* doc/HACKING: Describe the ChangeLog policy
* ChangeLog: New file.
* Makefile.am (EXTRA_DIST): Add new files.
(gen-ChangeLog): New.
(dist-hook): Run gen-ChangeLog.
Rename all ChangeLog files to ChangeLog-2011.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 23edae4e3..292748abc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,9 +20,12 @@ ACLOCAL_AMFLAGS = -I m4 -I gl/m4 AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip -DISTCHECK_CONFIGURE_FLAGS = --enable-symcryptrun --enable-mailto +DISTCHECK_CONFIGURE_FLAGS = --enable-symcryptrun --enable-mailto --enable-gpgtar -EXTRA_DIST = scripts/config.rpath scripts/potomo autogen.sh README.GIT +EXTRA_DIST = scripts/config.rpath scripts/potomo autogen.sh README.GIT \ + ChangeLog-2011 po/ChangeLog-2011 scripts/ChangeLog-2011 \ + scripts/gitlog-to-changelog \ + scripts/git-log-fix scripts/git-log-footer DISTCLEANFILES = g10defs.h if BUILD_GPGSM @@ -90,7 +93,7 @@ SUBDIRS = m4 gl include common ${kbx} \ dist_doc_DATA = README -dist-hook: +dist-hook: gen-ChangeLog echo "$(VERSION)" > $(distdir)/VERSION if HAVE_W32_SYSTEM @@ -106,5 +109,20 @@ install-data-hook: done endif + +gen_start_date = 2011-12-01T06:00:00 +.PHONY: gen-ChangeLog +gen-ChangeLog: + if test -d $(top_srcdir)/.git; then \ + (cd $(top_srcdir) && \ + ./scripts/gitlog-to-changelog \ + --amend=scripts/git-log-fix \ + --since=$(gen_start_date) ) > $(distdir)/cl-t; \ + cat $(top_srcdir)/scripts/git-log-footer >> $(distdir)/cl-t; \ + rm -f $(distdir)/ChangeLog; \ + mv $(distdir)/cl-t $(distdir)/ChangeLog; \ + fi + + stowinstall: $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/gnupg |