[PATCH virt-viewer] Auto-generate AUTHORS file from GIT logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

Rather than trying to manually keep track of authors,
just auto-generate the list from GIT logs

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 AUTHORS      | 77 ------------------------------------------------------------
 AUTHORS.in   | 21 +++++++++++++++++
 Makefile.am  | 15 +++++++++---
 acinclude.m4 |  2 +-
 autogen.sh   |  6 +++++
 cfg.mk       | 15 ------------
 6 files changed, 40 insertions(+), 96 deletions(-)
 delete mode 100644 AUTHORS
 create mode 100644 AUTHORS.in

diff --git a/AUTHORS b/AUTHORS
deleted file mode 100644
index 9f24c26..0000000
--- a/AUTHORS
+++ /dev/null
@@ -1,77 +0,0 @@
- Virt Viewer Authors
- ===================
-
-The Virt Viewer application is maintained by
-
-    Daniel P. Berrange <berrange@xxxxxxxxxx> (Original author)
-    Christophe Fergeau <cfergeau@xxxxxxxxxx>
-    Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
-    Hans de Goede <hdegoede@xxxxxxxxxx>
-    Michal Privoznik <mprivozn@xxxxxxxxxx>
-
-With additional patches from:
-
-    Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
-    Chris Lalancette <clalance@xxxxxxxxxx>
-    Dave Allan <dallan@xxxxxxxxxx>
-    Doug Goldstein <cardoe@xxxxxxxxxx>
-    Guannan Ren <gren@xxxxxxxxxx>
-    Guido G\374nther <agx@xxxxxxxxxxx>
-    Hans de Goede <hdegoede@xxxxxxxxxx>
-    Hiroyuki Kaguchi <fj7025cf@xxxxxxxxxxxxxxxxx>
-    Jiri Denemark <Jiri.Denemark@xxxxxxxxx>
-    Pavel Raiskup <praiskup@xxxxxxxxxx>
-    Richard W.M. Jones <rjones@xxxxxxxxxx>
-    Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx>
-    Yann E. MORIN <yann.morin.1998@xxxxxxxxxxxxxxx>
-    Yonit Halperin <yhalperi@xxxxxxxxxx>
-    Zeeshan Ali (Khattak) <zeeshanak@xxxxxxxxx>
-
-   ...send patches to get your name here...
-
-Translations have been provided by
-
-    <amitakhya@xxxxxxxxxxxxxxxxx>
-    <andreyjktl@xxxxxxxxxxxxxxxxx>
-    <anipeter@xxxxxxxxxxxxxxxxx>
-    <ankit@xxxxxxxxxxxxxxxxx>
-    <aron@xxxxxxxxxxxxxxxxx>
-    <bozzo@xxxxxxxxxxxxxxxxx>
-    <elsupergomez@xxxxxxxxxxxxxxxxx>
-    <enshahar@xxxxxxxxxxxxxxxxx>
-    <fdaluisio@xxxxxxxxxxxxxxxxx>
-    <gcintra@xxxxxxxxxxxxxxxxx>
-    <giallu@xxxxxxxxxxxxxxxxx>
-    <hedda@xxxxxxxxxxxxxxxxx>
-    <htaira@xxxxxxxxxxxxxxxxx>
-    <ifelix@xxxxxxxxxxxxxxxxx>
-    <jassy@xxxxxxxxxxxxxxxxx>
-    <khasida@xxxxxxxxxxxxxxxxx>
-    <kkrothap@xxxxxxxxxxxxxxxxx>
-    <leahliu@xxxxxxxxxxxxxxxxx>
-    <mgiri@xxxxxxxxxxxxxxxxx>
-    <mospina@xxxxxxxxxxxxxxxxx>
-    <mvdz@xxxxxxxxxxxxxxxxx>
-    <rajesh@xxxxxxxxxxxxxxxxx>
-    <raven@xxxxxxxxxxxxxxxxx>
-    <renault@xxxxxxxxxxxxxxxxx>
-    <runab@xxxxxxxxxxxxxxxxx>
-    <samfreemanz@xxxxxxxxxxxxxxxxx>
-    <sandeeps@xxxxxxxxxxxxxxxxx>
-    <shanky@xxxxxxxxxxxxxxxxx>
-    <snicore@xxxxxxxxxxxxxxxxx>
-    <swkothar@xxxxxxxxxxxxxxxxx>
-    <tchuang@xxxxxxxxxxxxxxxxx>
-    <tombo@xxxxxxxxxxxxxxxxx>
-    <tomspur@xxxxxxxxxxxxxxxxx>
-    <warrink@xxxxxxxxxxxxxxxxx>
-    <webappz@xxxxxxxxxxxxxxxxx>
-    <ypoyarko@xxxxxxxxxxxxxxxxx>
-    <yurchor@xxxxxxxxxxxxxxxxx>
-    <zoltanh721@xxxxxxxxxxxxxxxxx>
-    ...and more...
-
-For full translation credits see the header of the individual
-files in the po/ directory.
-
--- End
diff --git a/AUTHORS.in b/AUTHORS.in
new file mode 100644
index 0000000..e5d7307
--- /dev/null
+++ b/AUTHORS.in
@@ -0,0 +1,21 @@
+ Virt Viewer Authors
+ ===================
+
+The Virt Viewer application is maintained by
+
+    Daniel P. Berrange <berrange@xxxxxxxxxx> (Original author)
+    Christophe Fergeau <cfergeau@xxxxxxxxxx>
+    Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
+    Hans de Goede <hdegoede@xxxxxxxxxx>
+    Michal Privoznik <mprivozn@xxxxxxxxxx>
+
+With additional patches & translations from:
+
+#authorslist#
+
+   ...send patches to get your name here...
+
+For full translation credits see the header of the individual
+files in the po/ directory.
+
+-- End
diff --git a/Makefile.am b/Makefile.am
index 2407b1b..35de950 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -15,6 +15,7 @@ EXTRA_DIST =					\
 	build-aux/gitlog-to-changelog		\
 	build-aux/useless-if-before-free	\
 	build-aux/vc-list-files			\
+	AUTHORS.in				\
 	$(NULL)
 
 DISTCLEAN_FILES =				\
@@ -44,11 +45,11 @@ MAINTAINERCLEANFILES =				\
 	$(srcdir)/m4/lt~obsolete.m4		\
 	$(NULL)
 
-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.
-.PHONY: gen-ChangeLog
+.PHONY: gen-ChangeLog gen-AUTHORS
 gen-ChangeLog:
 	if test -d .git || test -d ../.git; then		\
 	  $(top_srcdir)/build-aux/gitlog-to-changelog		\
@@ -57,8 +58,16 @@ gen-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
+
 if OS_WIN32
-.PHONY: nsis
+.PHONY:: nsis
 nsis:
 	make -C $(builddir)/data virt-viewer-$(VERSION).exe
 endif
diff --git a/acinclude.m4 b/acinclude.m4
index 625413f..a9561c4 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -34,7 +34,7 @@ AC_DEFUN([VIRT_VIEWER_COMPILE_WARNINGS],[
 	try_compiler_flags="$try_compiler_flags -Wall -Wmissing-prototypes -std=c99 -Wnested-externs -Wpointer-arith"
         try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
         # Removed -Wstrict-prototypes to avoid GTK bug
-	try_compiler_flags="$try_compiler_flags -Winline -Wredundant-decls -Wno-sign-compare"
+	try_compiler_flags="$try_compiler_flags -Winline -Wredundant-decls -Wno-sign-compare -Wno-deprecated-declarations"
 	if test "$enable_compile_warnings" = "error" ; then
 	    try_compiler_flags="$try_compiler_flags -Werror"
 	fi
diff --git a/autogen.sh b/autogen.sh
index a850132..b8d3c4d 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,6 +2,7 @@
 # Run this to generate all the initial makefiles, etc.
 
 set -e
+
 srcdir=`dirname $0`
 test -z "$srcdir" && srcdir=.
 
@@ -21,6 +22,11 @@ if test "x$1" = "x--system"; then
     EXTRA_ARGS="--prefix=$prefix --sysconfdir=$sysconfdir --localstatedir=$localstatedir --libdir=$libdir"
 fi
 
+# 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
+
 intltoolize --force
 autoreconf -vfi
 
diff --git a/cfg.mk b/cfg.mk
index 30392d4..fcba213 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -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				\
@@ -111,20 +110,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_preprocessor_indentation = ^*/*.[ch]
 exclude_file_name_regexp--sc_prohibit_strcmp = ^*/*.[ch]
-- 
1.8.1

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux