From dad7d86d57d2a6351ba1a395109760dce8977a91 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 7 Jan 2007 18:38:56 +0100 Subject: * tests/sample-test: Update copyright date to 2007. * Makefile.maint (copyright-check): Also check the copyright date in tests/sample-test. --- ChangeLog | 6 ++++++ Makefile.maint | 9 ++++++++- tests/sample-test | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2ac01ae57..d4e766ed3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-07 Jim Meyering + + * 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 * 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 -- cgit v1.2.3-54-g00ecf