summaryrefslogtreecommitdiff
path: root/maint.mk
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-08-12 14:25:53 -0600
committerEric Blake <ebb9@byu.net>2009-08-14 07:23:24 -0600
commitf2b17001accafe0c7d159d5e18c963c3622d23ed (patch)
treec033d8406bf5452a04a4604f77fd7bf715a5d684 /maint.mk
parentc6aa493da470a5f2578508632058188e81a91af6 (diff)
downloadautoconf-f2b17001accafe0c7d159d5e18c963c3622d23ed.tar.gz
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 <ebb9@byu.net>
Diffstat (limited to 'maint.mk')
-rw-r--r--maint.mk31
1 files changed, 29 insertions, 2 deletions
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)/$@