summaryrefslogtreecommitdiffstats
path: root/CVSROOT/commit_prep.pl
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-09 14:08:19 +0000
committerpeter <peter@FreeBSD.org>1999-12-09 14:08:19 +0000
commitf8535a389dea6a48f9025a0dfde27676b6c900d1 (patch)
treefcec8b00c2732d8d0ccf76d9fbd8139e12c5bad6 /CVSROOT/commit_prep.pl
parent5e275556abdf04fc8f8aebfbfc7f31a6a730768c (diff)
downloadFreeBSD-ports-f8535a389dea6a48f9025a0dfde27676b6c900d1.zip
FreeBSD-ports-f8535a389dea6a48f9025a0dfde27676b6c900d1.tar.gz
Unused variable ($ind) and skip regexp lines that begin with a '#'
character as a comment.
Diffstat (limited to 'CVSROOT/commit_prep.pl')
-rwxr-xr-xCVSROOT/commit_prep.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/CVSROOT/commit_prep.pl b/CVSROOT/commit_prep.pl
index b286d6d..97318f2 100755
--- a/CVSROOT/commit_prep.pl
+++ b/CVSROOT/commit_prep.pl
@@ -109,11 +109,14 @@ sub check_version {
$path = $directory . "/" . $filename;
open(EX, "<$exclude") || die("cannot open $exclude: $!");
while (<EX>) {
- local($ind, $line);
+ local($line);
chop;
$line = $_;
+ if ($line =~ /^#/) {
+ next;
+ }
if ($path =~ /$line/) {
close(EX);
return(0);
OpenPOWER on IntegriCloud