From 43b8af82db9fb7077ae687998bf96e9781460665 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 12 Feb 2012 16:57:42 +0100 Subject: maint: add a rule to use gnulib's update-copyright * lib/update-copyright: New file, from gnulib. * Makefile.am (FETCHFILES): Add update-copyright to the list. (fetch): Fetch it. (update-copyright): New rule. --- Makefile.am | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 56784ca5d..76c3e6986 100644 --- a/Makefile.am +++ b/Makefile.am @@ -752,7 +752,8 @@ config.guess \ config.sub \ gnupload \ gitlog-to-changelog \ -texinfo.tex +texinfo.tex \ +update-copyright ## Fetch the latest versions of files we care about. fetch: @@ -765,6 +766,7 @@ fetch: $(WGET_SV_CVS)texinfo/texinfo/doc/texinfo.tex -O texinfo.tex && \ $(WGET_SV_GIT_GL)doc/INSTALL -O INSTALL && \ $(WGET_SV_GIT_GL)build-aux/gnupload -O gnupload && \ + $(WGET_SV_GIT_GL)build-aux/update-copyright -O update-copyright && \ $(WGET_SV_GIT_GL)build-aux/gitlog-to-changelog -O gitlog-to-changelog) ## Don't exit after test because we want to give as many errors as ## possible. @@ -812,3 +814,12 @@ release-stats: ps printf '@item %s @tab %-6s @tab %4d @tab %4d @tab %4d @tab %4d %-4s @tab %4d %-4s @tab %3d @tab %d %-4s\n' \ $$today $(VERSION) $$am $$acl $$pm $$aml "($$amf)" $$m4l "($$m4f)" $$doc $$t "($$tgen)" .PHONY: release-stats + +update_copyright_env = \ + UPDATE_COPYRIGHT_FORCE=1 \ + UPDATE_COPYRIGHT_USE_INTERVALS=2 + +.PHONY: update-copyright +update-copyright: + git ls-files | grep -Ev 'COPYING|INSTALL' \ + | $(update_copyright_env) xargs $(srcdir)/lib/$@ -- cgit v1.2.1