diff options
author | Stef Walter <stef@memberwebs.com> | 2009-10-31 00:54:09 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-10-31 00:55:53 +0000 |
commit | aef40c10e9c2620943c196a4d07ecce2795c1c95 (patch) | |
tree | 406fbeb7064b11c0823c434a66ef44db792dea4b /Makefile.am | |
parent | 119813d32b29eb2dc3a2ddcb344f6f39b5455548 (diff) |
Build changes for better working with git.
* Automatically generated ChangeLog.
* Proper NEWS file
* Enable whitespace hooks in git if available.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index cada1bd..1193d9a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,5 +7,16 @@ EXTRA_DIST = common config.sub acsite.m4 COPYING-DAEMON SUBDIRS = daemon doc tools java $(APACHE_DIR) tests dist-hook: - rm -rf `find $(distdir)/ -name .svn` + @if test -d "$(srcdir)/.git"; \ + then \ + echo Creating ChangeLog && \ + ( cd "$(top_srcdir)" && \ + echo '# Generate automatically. Do not edit.'; echo; \ + $(top_srcdir)/missing --run git log --stat --date=short ) > ChangeLog.tmp \ + && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ + || ( rm -f ChangeLog.tmp ; \ + echo Failed to generate ChangeLog >&2 ); \ + else \ + echo A git clone is required to generate a ChangeLog >&2; \ + fi |