aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-09 22:08:19 +0800
committerpeter <peter@FreeBSD.org>1999-12-09 22:08:19 +0800
commitf8535a389dea6a48f9025a0dfde27676b6c900d1 (patch)
treefcec8b00c2732d8d0ccf76d9fbd8139e12c5bad6
parent5e275556abdf04fc8f8aebfbfc7f31a6a730768c (diff)
downloadfreebsd-ports-gnome-f8535a389dea6a48f9025a0dfde27676b6c900d1.tar.gz
freebsd-ports-gnome-f8535a389dea6a48f9025a0dfde27676b6c900d1.tar.zst
freebsd-ports-gnome-f8535a389dea6a48f9025a0dfde27676b6c900d1.zip
Unused variable ($ind) and skip regexp lines that begin with a '#'
character as a comment.
-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 b286d6d6ff77..97318f2a3c4d 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);