summaryrefslogtreecommitdiffstats
path: root/CVSROOT/commit_prep.pl
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-09-12 14:10:32 +0000
committerpeter <peter@FreeBSD.org>1999-09-12 14:10:32 +0000
commit60fa2668b61b761c77dfd509a1859e0fac95b002 (patch)
tree5e13277958b555faf8ad490d3e94f8e82c4e545e /CVSROOT/commit_prep.pl
parent808666b7c78f4ad21c74ef69886754320ab85802 (diff)
downloadFreeBSD-ports-60fa2668b61b761c77dfd509a1859e0fac95b002.zip
FreeBSD-ports-60fa2668b61b761c77dfd509a1859e0fac95b002.tar.gz
Requiring the $FreeBSD$ to be within the first 'n' lines isn't all that
useful.
Diffstat (limited to 'CVSROOT/commit_prep.pl')
-rwxr-xr-xCVSROOT/commit_prep.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/CVSROOT/commit_prep.pl b/CVSROOT/commit_prep.pl
index e2bdb21..2fcfac8 100755
--- a/CVSROOT/commit_prep.pl
+++ b/CVSROOT/commit_prep.pl
@@ -85,11 +85,12 @@ sub write_line {
}
sub check_version {
- local($i, $id, $rname, $version, $bareid);
+ local($id, $rname, $version, $bareid);
local($filename, $directory, $hastag, $cvsversion) = @_;
open(FILE, $filename) || die("Cannot open $filename, stopped");
- for ($i = 1; $i < 70; $i++) {
+ # requiring the header within the first 'n' lines isn't useful.
+ while (1) {
$pos = -1;
last if eof(FILE);
$line = <FILE>;
OpenPOWER on IntegriCloud