]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* tests/sample-test: Update copyright date to 2007.
authorJim Meyering <jim@meyering.net>
Sun, 7 Jan 2007 17:38:56 +0000 (18:38 +0100)
committerJim Meyering <jim@meyering.net>
Sun, 7 Jan 2007 17:38:56 +0000 (18:38 +0100)
* Makefile.maint (copyright-check): Also check the copyright date
in tests/sample-test.

ChangeLog
Makefile.maint
tests/sample-test

index 2ac01ae5735013f0aca0567de10173b956a524db..d4e766ed3eafca8623202eb38bd8b9e3be42bf63 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-07  Jim Meyering  <jim@meyering.net>
+
+       * tests/sample-test: Update copyright date to 2007.
+       * Makefile.maint (copyright-check): Also check the copyright date
+       in tests/sample-test.
+
 2007-01-06  Jim Meyering  <jim@meyering.net>
 
        * tests/fmt/basic (pfx-only, pfx-of-pfx): New tests,
index c33d9d235e74446f51a3b4272e6d0068369bb6b7..9baafa3d8d3f2face81b88000edefd14058b91c8 100644 (file)
@@ -2,7 +2,7 @@
 # This Makefile fragment is shared between the coreutils,
 # CPPI, Bison, and Autoconf.
 
-## Copyright (C) 2001-2006 Free Software Foundation, Inc.
+## Copyright (C) 2001-2007 Free Software Foundation, Inc.
 ##
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -449,6 +449,7 @@ writable-files:
        test "$$fail" && exit 1 || :
 
 v_etc_file = lib/version-etc.c
+sample-test = tests/sample-test
 # Make sure that the copyright date in $(v_etc_file) is up to date.
 copyright-check:
        @if test -f $(v_etc_file); then \
@@ -457,6 +458,12 @@ copyright-check:
          || { echo 'out of date copyright in $(v_etc_file); update it' 1>&2; \
               exit 1; }; \
        fi
+       @if test -f $(sample-test); then \
+         grep '# Copyright (C) '$$(date +%Y)' Free' $(sample-test) \
+           >/dev/null \
+         || { echo 'out of date copyright in $(sample-test); update it' 1>&2; \
+              exit 1; }; \
+       fi
 
 
 # Sanity checks with the repository.
index f4b459ce214223daf7c2c7202ea2e33c5eeddea0..87e16ff318067e33d19b4c21fd48c4ccf3f0a7ea 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # FIXME
 
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2007 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by