[devscripts] 01/01: licensecheck: Detect files containing "edit the original" as generated

Paul Wise pabs at moszumanska.debian.org
Sun May 22 04:47:14 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 c0024a473bd4f6b2d22a8775cc810b95ceb1754c
Author: Paul Wise <pabs at debian.org>
Date:   Sun May 22 12:46:47 2016 +0800

    licensecheck: Detect files containing "edit the original" as generated
---
 debian/changelog        | 1 +
 scripts/licensecheck.pl | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index fb8d2c4..fe0a3f1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,7 @@ devscripts (2.16.5) UNRELEASED; urgency=medium
   * licensecheck:
     + Detect files containing "do not modify" as generated
     + Detect files containing "Generated data" as generated
+    + Detect files containing "edit the original" as generated
 
  -- Ben Finney <ben+debian at benfinney.id.au>  Sat, 14 May 2016 13:54:07 +1000
 
diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index 56cbaba..c19e561 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 ((?:HAND )?EDIT|delete this file|modify)|Generated (automatically|by|from|data)|generated.*file)/i
+    if ($licensetext =~ /(All changes made in this file will be lost|DO NOT ((?:HAND )?EDIT|delete this file|modify)|edit the original|Generated (automatically|by|from|data)|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