summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-07-11 11:25:57 +0200
committerJim Meyering <jim@meyering.net>2007-07-11 11:25:57 +0200
commite345806d939845cc3761a42b3a7490c267735b8b (patch)
tree7dee3981b5cde247b997c381814d3e3e4c028303
parent89dc0194511bdf7709ad5fc63acd079d6fa62b75 (diff)
downloadcoreutils-e345806d939845cc3761a42b3a7490c267735b8b.tar.xz
If there's a GPL vN copyright comment, require that N == 3.
* Makefile.maint (sc_GPL_version): New rule. * tests/misc/arch: Fix the sole violation.
-rw-r--r--ChangeLog6
-rw-r--r--Makefile.maint5
-rwxr-xr-xtests/misc/arch2
3 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 95f77acb3..03cc88d41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-11 Jim Meyering <jim@meyering.net>
+
+ If there's a GPL vN copyright comment, require that N == 3.
+ * Makefile.maint (sc_GPL_version): New rule.
+ * tests/misc/arch: Fix the sole violation.
+
2007-07-10 Jim Meyering <jim@meyering.net>
Skip "arch" test if it's not built.
diff --git a/Makefile.maint b/Makefile.maint
index 088ddf35b..f0c98c876 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -355,6 +355,11 @@ sc_useless_cpp_parens:
{ echo '$(ME): found useless parentheses in cpp directive' \
1>&2; exit 1; } || :
+# Require the latest GPL.
+sc_GPL_version:
+ @grep -n 'either ''version [^3]' $$($(CVS_LIST_EXCEPT)) && \
+ { echo '$(ME): GPL vN, N!=3' 1>&2; exit 1; } || :
+
# Ensure that the c99-to-c89 patch applies cleanly.
patch-check:
rm -rf src-c89 $@.1 $@.2
diff --git a/tests/misc/arch b/tests/misc/arch
index a55a02c1c..6082cccab 100755
--- a/tests/misc/arch
+++ b/tests/misc/arch
@@ -5,7 +5,7 @@
# 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
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,