diff options
author | joe <joe@FreeBSD.org> | 2001-09-01 20:39:53 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-09-01 20:39:53 +0800 |
commit | 54f442c366562d42069d06eda9b567b1a6a0c89a (patch) | |
tree | c128825d9889fec843c6af6fc20c7e27ff43195a | |
parent | 829ba369d75e5aa847110bb911e0378645e5bc44 (diff) | |
download | freebsd-ports-gnome-54f442c366562d42069d06eda9b567b1a6a0c89a.tar.gz freebsd-ports-gnome-54f442c366562d42069d06eda9b567b1a6a0c89a.tar.zst freebsd-ports-gnome-54f442c366562d42069d06eda9b567b1a6a0c89a.zip |
Rename some variables to make the code clearer.
-rwxr-xr-x | CVSROOT/commit_prep.pl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/CVSROOT/commit_prep.pl b/CVSROOT/commit_prep.pl index b855464c4e95..8960bddafeed 100755 --- a/CVSROOT/commit_prep.pl +++ b/CVSROOT/commit_prep.pl @@ -101,7 +101,7 @@ sub check_version { my $filename = shift; my $directory = shift; my $hastag = shift; - my %cvsversion = @_; + my %versions = @_; my $bareid; my $exclude; @@ -133,12 +133,12 @@ sub check_version { open(EX, "<$exclude") || die("cannot open $exclude: $!"); while (<EX>) { chop; - my $line = $_; + my $ex_entry = $_; - if ($line =~ /^#/) { + if ($ex_entry =~ /^#/) { next; } - if ($path =~ /$line/) { + if ($path =~ /$ex_entry/) { close(EX); return(0); } @@ -160,7 +160,7 @@ sub check_version { return (0); } ($id, $rname, $version) = split(' ', substr($line, $pos)); - if ($cvsversion{$filename} eq '0') { + if ($versions{$filename} eq '0') { if (!$bareid) { printf($NoName, $filename); return(1); @@ -188,8 +188,8 @@ sub check_version { return(1); } } - if ($cvsversion{$filename} ne $version) { - printf($BadVersion, $filename, $cvsversion{$filename}, + if ($versions{$filename} ne $version) { + printf($BadVersion, $filename, $versions{$filename}, $version, $filename); return(1); } |