]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Check for an up-to-date copyright year in coreutils.texi.
authorJim Meyering <jim@meyering.net>
Tue, 22 May 2007 18:41:00 +0000 (20:41 +0200)
committerJim Meyering <jim@meyering.net>
Tue, 22 May 2007 18:41:00 +0000 (20:41 +0200)
* 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.

ChangeLog
Makefile.maint
doc/coreutils.texi

index 464266770950948f56a5b3e9557460a3e299ce65..34304f1242d6f00abf66b01d2727494702330cbf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2007-05-22  Jim Meyering  <jim@meyering.net>
 
+       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.
+
        cut: diagnose a range starting with 0 (-f 0-2) as invalid, and
        give a better diagnostic for a field-number/offset of 0.
        * NEWS: Mention the fix.
index 795cd99eea427ac55ab0a73cbf922af551ea79e4..c4da71e93f9c04682df5aa8820d9f80971caed5a 100644 (file)
@@ -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.
index cc4d0b8536d9b7d2a3fb08936cd9c0de7035640b..e3a7ec12420298b75e9da457550a9b2fca459c84 100644 (file)
 This manual documents version @value{VERSION} of the @sc{gnu} core
 utilities, including the standard programs for text and file manipulation.
 
-Copyright @copyright{} 1994, 1995, 1996, 2000, 2001, 2002, 2003, 2004,
-2005, 2006 Free Software Foundation, Inc.
+Copyright @copyright{} 1994-1996, 2000-2007 Free Software Foundation, Inc.
 
 @quotation
 Permission is granted to copy, distribute and/or modify this document