From 9e450601b1509b3a83d9c1231b3cf9107eedbe9b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 22 May 2007 20:41:00 +0200 Subject: Check for an up-to-date copyright year in coreutils.texi. * Makefile.maint (copyright-check): Also check for an up-to-date copyright year in doc/$().texi, if that file exists. * doc/coreutils.texi: Add 2007 to list of Copyright years. Reported by Karl Berry. --- Makefile.maint | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile.maint') diff --git a/Makefile.maint b/Makefile.maint index 795cd99ee..c4da71e93 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -450,7 +450,9 @@ writable-files: v_etc_file = lib/version-etc.c sample-test = tests/sample-test +texi = doc/$(PACKAGE).texi # Make sure that the copyright date in $(v_etc_file) is up to date. +# Do the same for the $(sample-test) and the main doc/.texi file. copyright-check: @if test -f $(v_etc_file); then \ grep 'enum { COPYRIGHT_YEAR = '$$(date +%Y)' };' $(v_etc_file) \ @@ -464,6 +466,12 @@ copyright-check: || { echo 'out of date copyright in $(sample-test); update it' 1>&2; \ exit 1; }; \ fi + @if test -f $(texi); then \ + grep 'Copyright @copyright{} .*'$$(date +%Y)' Free' $(texi) \ + >/dev/null \ + || { echo 'out of date copyright in $(texi); update it' 1>&2; \ + exit 1; }; \ + fi # Sanity checks with the repository. -- cgit v1.2.3-54-g00ecf