Mercurial > hg > octave-lojdl > gnulib-hg
changeset 12593:e8847ec6bc92
maint.mk: detect incorrect GFDL usage
Similar to the existing sc_GPL_version. Fortunately, the two licenses
have enough distinction in wording so that neither regexp is a false
positive for the other license. This won't catch files that line wrap
differently than expected; as it was, the GFDL needed two regexp to
handle the use of GFDL in the m4 project.
* top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Wed, 06 Jan 2010 20:47:08 -0700 |
parents | f46f6a6b078c |
children | 99db2fb17cae |
files | ChangeLog top/maint.mk |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-06 Eric Blake <ebb9@byu.net> + + maint.mk: detect incorrect GFDL usage + * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule. + 2010-01-06 Jim Meyering <meyering@redhat.com> and Eric Blake <ebb9@byu.net>
--- a/top/maint.mk +++ b/top/maint.mk @@ -495,6 +495,13 @@ @re='either ''version [^3]' msg='GPL vN, N!=3' \ $(_prohibit_regexp) +# Require the latest GFDL. Two regexp, since some .texi files end up +# line wrapping between 'Free Documentation License,' and 'Version'. +_GFDL_regexp = (Free ''Documentation.*Version 1\.[^3]|Version 1\.[^3] or any) +sc_GFDL_version: + @re='$(_GFDL_regexp)' msg='GFDL vN, N!=3' \ + $(_prohibit_regexp) + cvs_keywords = \ Author|Date|Header|Id|Name|Locker|Log|RCSfile|Revision|Source|State