From f2b17001accafe0c7d159d5e18c963c3622d23ed Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 12 Aug 2009 14:25:53 -0600 Subject: Prepare to bulk update copyright years. * build-aux/update-copyright: New file. * cfg.mk (gnulib-update): Sync it from gnulib. (update-copyright-exclude-regexp): New varialbe. (web-manual): Move... * maint.mk (web-manual): ...here, to match gnulib. (update-copyright): New target, copied from gnulib's maint.mk (it would be nice to sync this file...). (build_aux): New macro. (VC_LIST, emit_upload_commands): Use it. * build-aux/texinfo.tex: Resynchronize from upstream. * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): Reformat to meet expected pattern. * lib/autotest/general.m4 (_AT_COPYRIGHT_YEARS): Likewise. Signed-off-by: Eric Blake --- maint.mk | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'maint.mk') diff --git a/maint.mk b/maint.mk index 1b35a3bb..6394508f 100644 --- a/maint.mk +++ b/maint.mk @@ -21,6 +21,9 @@ # ME := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) ME := maint.mk +# Override this in cfg.mk if you use a non-standard build-aux directory. +build_aux ?= $(srcdir)/build-aux + # Do not save the original name or timestamp in the .tar.gz file. # Use --rsyncable if available. gzip_rsyncable := \ @@ -31,7 +34,7 @@ GIT = git VC = $(GIT) VC-tag = git tag -s -m '$(VERSION)' -VC_LIST = $(srcdir)/build-aux/vc-list-files -C $(srcdir) +VC_LIST = $(build_aux)/vc-list-files -C $(srcdir) VC_LIST_EXCEPT = \ $(VC_LIST) | if test -f $(srcdir)/.x-$@; then \ @@ -552,7 +555,7 @@ move_if_change ?= move-if-change emit_upload_commands: @echo ===================================== @echo ===================================== - @echo "$(srcdir)/build-aux/gnupload $(GNUPLOADFLAGS) \\" + @echo "$(build_aux)/gnupload $(GNUPLOADFLAGS) \\" @echo " --to $(gnu_rel_host):$(PACKAGE) \\" @echo " $(rel-files)" @echo '# send the /tmp/announcement e-mail' @@ -575,3 +578,27 @@ alpha beta major: news-date-check changelog-check $(local-check) $(VC) commit -m \ '$(prev_version_file): Record previous version: $(VERSION).' \ $(prev_version_file) + + +.PHONY: web-manual +web-manual: + @test -z "$(manual_title)" \ + && { echo define manual_title in cfg.mk 1>&2; exit 1; } || : + @cd '$(srcdir)/doc'; \ + $(SHELL) ../build-aux/gendocs.sh -o '$(abs_builddir)/doc/manual' \ + --email $(PACKAGE_BUGREPORT) $(PACKAGE) \ + "$(PACKAGE_NAME) - $(manual_title)" + @echo " *** Upload the doc/manual directory to web-cvs." + +# If you have an additional project-specific rule, +# define it in cfg.mk and set this variable to its name. +update-copyright-local ?= + +# Run this rule once per year (usually early in January) +# to update all FSF copyright year lists in your project. +update-copyright-exclude-regexp ?= (^|/)COPYING$$ +.PHONY: update-copyright +update-copyright: $(update-copyright-local) + grep -l -w Copyright $$($(VC_LIST_EXCEPT)) \ + | grep -v -E '$(update-copyright-exclude-regexp)' \ + | xargs $(build_aux)/$@ -- cgit v1.2.1