diff options
author | peter <peter@FreeBSD.org> | 1999-12-09 22:08:19 +0800 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-12-09 22:08:19 +0800 |
commit | f8535a389dea6a48f9025a0dfde27676b6c900d1 (patch) | |
tree | fcec8b00c2732d8d0ccf76d9fbd8139e12c5bad6 | |
parent | 5e275556abdf04fc8f8aebfbfc7f31a6a730768c (diff) | |
download | freebsd-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-x | CVSROOT/commit_prep.pl | 5 |
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); |