diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-04-08 16:51:03 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2013-04-09 11:36:13 +0100 |
commit | 7f8468d45db1699674e85e2945003606cd1ae4db (patch) | |
tree | dc6d0370b2b33679632b0cfe2e33cfaf9012b9c1 | |
parent | 6e265bf3beb0206a30bc6620ed1c8843d469b24f (diff) | |
download | libosinfo-7f8468d45db1699674e85e2945003606cd1ae4db.tar.gz |
Auto-generate AUTHORS file from GIT logs
Rather than trying to manually keep track of authors,
just auto-generate the list from GIT logs
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | AUTHORS | 29 | ||||
-rw-r--r-- | AUTHORS.in | 19 | ||||
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Makefile.am | 16 | ||||
-rwxr-xr-x | autogen.sh | 5 | ||||
-rw-r--r-- | cfg.mk | 16 |
7 files changed, 38 insertions, 53 deletions
@@ -1,3 +1,5 @@ +ChangeLog +AUTHORS *.[ao] *.l[ao] *~ diff --git a/AUTHORS b/AUTHORS deleted file mode 100644 index 4e1d305..0000000 --- a/AUTHORS +++ /dev/null @@ -1,29 +0,0 @@ - libosinfo Authors - ================= - -Current maintainers: - - Zeeshan Ali (Khattak) <zeeshanak@gnome.org> - Daniel P. Berrange <berrange@redhat.com> - -Previous maintainers: - - Arjun Roy <arroy@redhat.com> - -Patches contributed by: - - Matthew Booth <mbooth@redhat.com> - Christophe Fergeau <cfergeau@redhat.com> - Jim Meyering <meyering@redhat.com> - Fabiano FidĂȘncio <fabiano@fidencio.org> - Wanlong Gao <gaowanlong@cn.fujitsu.com> - Michal Privoznik <mprivozn@redhat.com> - David Zeuthen <davidz@redhat.com> - Eric Blake <eblake@redhat.com> - Yuri Chornoivan <yurchor@ukr.net> - Marc-AndrĂ© Lureau <marcandre.lureau@redhat.com> - Cole Robinson <crobinso@redhat.com> - Andreas Henriksson <andreas@fatal.se> - ...send patches to get your name here... - --- End diff --git a/AUTHORS.in b/AUTHORS.in new file mode 100644 index 0000000..1f7ca5c --- /dev/null +++ b/AUTHORS.in @@ -0,0 +1,19 @@ + libosinfo Authors + ================= + +Current maintainers: + + Zeeshan Ali (Khattak) <zeeshanak@gnome.org> + Daniel P. Berrange <berrange@redhat.com> + +Previous maintainers: + + Arjun Roy <arroy@redhat.com> + +Patches contributed by: + +#authorslist# + + ...send patches to get your name here... + +-- End diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index 88fec90..0000000 --- a/ChangeLog +++ /dev/null @@ -1,4 +0,0 @@ -0.01 -_______________________________________ - -Initial codebase. diff --git a/Makefile.am b/Makefile.am index 566ccac..7bb5c32 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,6 +23,7 @@ EXTRA_DIST = \ cfg.mk \ GNUmakefile \ maint.mk \ + AUTHORS.in \ $(INTLTOOL_FILES) \ $(NULL) @@ -59,16 +60,23 @@ cov: clean-cov clean-cov: rm -rf $(top_builddir)/coverage -dist-hook: gen-ChangeLog +dist-hook: gen-ChangeLog gen-AUTHORS # Generate the ChangeLog file (with all entries since the switch to git) # and insert it into the directory we're about to use to create a tarball. -gen_start_date = 2009-07-04 -.PHONY: gen-ChangeLog +.PHONY: gen-ChangeLog gen-AUTHORS gen-ChangeLog: if test -d .git; then \ $(top_srcdir)/build-aux/gitlog-to-changelog \ - --since=$(gen_start_date) > $(distdir)/cl-t; \ + > $(distdir)/cl-t; \ rm -f $(distdir)/ChangeLog; \ mv $(distdir)/cl-t $(distdir)/ChangeLog; \ fi + +gen-AUTHORS: + $(AM_V_GEN)if test -d $(srcdir)/.git; then \ + out="`cd $(srcdir) && git log --pretty=format:'%aN <%aE>' | sort -u`" && \ + perl -p -e "s/#authorslist#// and print '$$out'" \ + < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \ + mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ; \ + fi @@ -17,4 +17,9 @@ which gnome-autogen.sh || { exit 1 } +# Real ChangeLog/AUTHORS is auto-generated from GIT logs at +# make dist time, but automake requires that it +# exists at all times :-( +touch ChangeLog AUTHORS + ACLOCAL_FLAGS="$ACLOCAL_FLAGS" USE_GNOME2_MACROS=1 . gnome-autogen.sh --enable-gtk-doc "$@" @@ -18,7 +18,6 @@ # Tests not to run as part of "make distcheck". local-checks-to-skip = \ changelog-check \ - check-AUTHORS \ makefile-check \ makefile_path_separator_check \ patch-check \ @@ -114,21 +113,6 @@ sc_copyright_format: # We don't use this feature of maint.mk. prev_version_file = /dev/null -# Give credit where due: -# Ensure that each commit author email address (possibly mapped via -# git log's .mailmap) appears in our AUTHORS file. -sc_check_author_list: - @fail=0; \ - for i in $$(git log --pretty=format:%aE%n|sort -u|grep -v '^$$'); do \ - sanitized=$$(echo "$$i"|LC_ALL=C sed 's/\([^a-zA-Z0-9_@-]\)/\\\1/g'); \ - grep -iq "<$$sanitized>" $(srcdir)/AUTHORS \ - || { printf '%s\n' "$$i" >&2; fail=1; }; \ - done; \ - test $$fail = 1 \ - && echo '$(ME): committer(s) not listed in AUTHORS' >&2; \ - test $$fail = 0 - - exclude_file_name_regexp--sc_bindtextdomain = ^(libvirt-gconfig/tests|examples)/ exclude_file_name_regexp--sc_preprocessor_indentation = ^*/*.[ch] |