[devscripts] 11/16: licensecheck: indented © regex
dod at debian.org
dod at debian.org
Thu May 14 16:34:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
dod pushed a commit to branch master
in repository devscripts.
commit 8344be256225c92ad4c8e7e068e787d881d33d3b
Author: Dominique Dumont <dod at debian.org>
Date: Thu May 14 16:56:24 2015 +0200
licensecheck: indented © regex
---
scripts/licensecheck.pl | 40 ++++++++++++++++++++++++----------------
1 file changed, 24 insertions(+), 16 deletions(-)
diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index 6116a1f..8bd4e02 100755
--- a/scripts/licensecheck.pl
+++ b/scripts/licensecheck.pl
@@ -170,23 +170,31 @@ my $default_ignore_regex = qr!
my $default_check_regex = '\.(c(c|pp|xx)?|h(h|pp|xx)?|f(77|90)?|go|p(l|m)|xs|sh|php|py(|x)|rb|java|js|vala|el|sc(i|e)|cs|pas|inc|dtd|xsl|mod|m|tex|mli?|(c|l)?hs)$';
-my $copyright_indicator_regex = qr!
-(?:copyright # The full word
-|copr\. # Legally-valid abbreviation
-|© # Unicode character COPYRIGHT SIGN
-|\(c\) # Legally-null representation of sign
-)!lix;
+my $copyright_indicator_regex
+ = qr!
+ (?:copyright # The full word
+ |copr\. # Legally-valid abbreviation
+ |© # Unicode character COPYRIGHT SIGN
+ |\(c\) # Legally-null representation of sign
+ )
+ !lix;
+
my $copyright_indicator_regex_with_capture = qr!$copyright_indicator_regex(?::\s*|\s+)(\S.*)$!lix;
-my $copyright_disindicator_regex = qr!
-^\s*(?:info(?:rmation)? # Discussing copyright information
-|(notice|statement|claim|string)s? # Discussing the notice
-|and|or|is|in|to # Part of a sentence
-|(holder|owner)s? # Part of a sentence
-|ownership # Part of a sentence
-)\b!ix;
-my $copyright_predisindicator_regex = qr!(
-^[#]define\s+.*\(c\) # #define foo(c) -- not copyright
-)!ix;
+
+my $copyright_disindicator_regex
+ = qr!
+ ^\s*(?:info(?:rmation)? # Discussing copyright information
+ |(notice|statement|claim|string)s? # Discussing the notice
+ |and|or|is|in|to # Part of a sentence
+ |(holder|owner)s? # Part of a sentence
+ |ownership # Part of a sentence
+ )\b
+ !ix;
+
+my $copyright_predisindicator_regex
+ = qr!(
+ ^[#]define\s+.*\(c\) # #define foo(c) -- not copyright
+ )!ix;
my $modified_conf_msg;
--
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