# HG changeset patch # User Eric Blake # Date 1262836028 25200 # Node ID e8847ec6bc92c2d3787de0faec9d44879639b16f # Parent f46f6a6b078cba29f5570fe601fdb72edd02aff4 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 diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-06 Eric Blake + + maint.mk: detect incorrect GFDL usage + * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule. + 2010-01-06 Jim Meyering and Eric Blake diff --git a/top/maint.mk b/top/maint.mk --- 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