aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-01-04 15:34:59 -0500
committerB. Watson <yalhcru@gmail.com>2020-01-04 15:34:59 -0500
commit4b53b20584d5581f966442cd5316fc64f5920e60 (patch)
tree7cead4c8182ee71349b0c841366f73884d5588b4 /sbolint
parent2014283bb112cd20ffab0c8180b1974ed8c3110d (diff)
downloadsbostuff-4b53b20584d5581f966442cd5316fc64f5920e60.tar.gz
sbolint: special case for perl builds;
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint9
1 files changed, 8 insertions, 1 deletions
diff --git a/sbolint b/sbolint
index 6c8f5b7..590f704 100755
--- a/sbolint
+++ b/sbolint
@@ -279,7 +279,6 @@ use POSIX qw/getcwd/;
qr/#\s*Strip binaries and libraries - this can be done with/,
qr/#\s*Compress man pages$/,
qr/#\s*Compress info pages and remove the/,
- qr/#\s*Remove perllocal.pod and other special files/,
qr/#\s*Copy program documentation into the package/,
qr/#\s*Copy the slack-desc \(and a custom doinst\.sh if necessary\)/,
qr/#\s*Make the package; be sure to leave it in/,
@@ -1030,6 +1029,14 @@ sub check_script {
if(grep { $line =~ /$_/ } @boilerplate) {
log_error("$file:$lineno: template comment should be removed");
}
+
+ # special case here: don't complain about this comment if it's a perl-* build
+ if($file !~ /^perl-/) {
+ if($line =~ /#\s*Remove perllocal.pod and other special files/) {
+ log_error("$file:$lineno: template comment should be removed");
+ }
+ }
+
}
if(not defined($prgnam)) {