[devscripts] 10/22: ignore #defines containing (c)
James McCoy
jamessan at debian.org
Wed Aug 7 02:49:51 UTC 2013
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch master
in repository devscripts.
commit 1f93424ce576719f04f2f346d0d1b105717de548
Author: Philip Hands <phil at hands.com>
Date: Tue Feb 19 18:09:32 2013 +0000
ignore #defines containing (c)
---
scripts/licensecheck.pl | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index 7c16394..bbc62fa 100755
--- a/scripts/licensecheck.pl
+++ b/scripts/licensecheck.pl
@@ -333,6 +333,11 @@ sub parse_copyright {
|and|or # Part of a sentence
|(holder|owner)s? # Part of a sentence
)\b';
+ my $copyright_predisindicator_regex = '(
+ ^[#]define\s+.*\(c\) # #define foo(c) -- not copyright
+ )';
+
+ if ( ! m%$copyright_predisindicator_regex%ix) {
if (m%$copyright_indicator_regex(?::\s*|\s+)(\S.*)$%ix) {
$match = $1;
@@ -348,6 +353,7 @@ sub parse_copyright {
$copyright = $match;
}
}
+ }
return $copyright;
}
--
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