diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Makefile.maint | 9 | ||||
-rw-r--r-- | tests/sample-test | 2 |
3 files changed, 15 insertions, 2 deletions
@@ -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, diff --git a/Makefile.maint b/Makefile.maint index c33d9d235..9baafa3d8 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -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. diff --git a/tests/sample-test b/tests/sample-test index f4b459ce2..87e16ff31 100644 --- a/tests/sample-test +++ b/tests/sample-test @@ -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 |