summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-05-22 20:41:00 +0200
committerJim Meyering <jim@meyering.net>2007-05-22 20:41:00 +0200
commit9e450601b1509b3a83d9c1231b3cf9107eedbe9b (patch)
treeb6bacb42f9ca92f7b4b1964f0d9c72a8c9a26a74 /Makefile.maint
parenta6a447fc58a01598682f0914f978d0a3c1cfc4dc (diff)
downloadcoreutils-9e450601b1509b3a83d9c1231b3cf9107eedbe9b.tar.xz
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.
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint8
1 files changed, 8 insertions, 0 deletions
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.