[devscripts] 01/01: Detect files containing "Do not hand edit!" as generated

Paul Wise pabs at moszumanska.debian.org
Mon Mar 28 06:58:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

pabs pushed a commit to branch master
in repository devscripts.

commit dd0a605065d2e730f79043fdec003240957d0288
Author: Paul Wise <pabs at debian.org>
Date:   Mon Mar 28 14:57:37 2016 +0800

    Detect files containing "Do not hand edit!" as generated
---
 scripts/licensecheck.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index e1d8f1f..a1f5c99 100755
--- a/scripts/licensecheck.pl
+++ b/scripts/licensecheck.pl
@@ -666,7 +666,7 @@ sub parselicense {
     }
 
     # exclude blurb found in boost license text
-    if ($licensetext =~ /(All changes made in this file will be lost|DO NOT (EDIT|delete this file)|Generated (automatically|by|from)|generated.*file)/i
+    if ($licensetext =~ /(All changes made in this file will be lost|DO NOT ((?:HAND )?EDIT|delete this file)|Generated (automatically|by|from)|generated.*file)/i
         and $licensetext !~  /unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor/) {
 	$license = "GENERATED FILE";
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list