diff options
author | joe <joe@FreeBSD.org> | 2001-11-15 20:27:55 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-11-15 20:27:55 +0800 |
commit | dd7e22b64c24f3bfa522803bffec46de21bf397b (patch) | |
tree | 28e458efe248347a5c19d68720140ec6ce233b69 /CVSROOT/commitcheck | |
parent | 67234ce6e2bd5ec843f88caff83a736665be9f8d (diff) | |
download | freebsd-ports-gnome-dd7e22b64c24f3bfa522803bffec46de21bf397b.tar.gz freebsd-ports-gnome-dd7e22b64c24f3bfa522803bffec46de21bf397b.tar.zst freebsd-ports-gnome-dd7e22b64c24f3bfa522803bffec46de21bf397b.zip |
Move the definition of the minimum version of cvs that we'll work with
into the configuration file.
Diffstat (limited to 'CVSROOT/commitcheck')
-rwxr-xr-x | CVSROOT/commitcheck | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/CVSROOT/commitcheck b/CVSROOT/commitcheck index 412bf1567cfa..4ab7b73810ff 100755 --- a/CVSROOT/commitcheck +++ b/CVSROOT/commitcheck @@ -12,11 +12,8 @@ use strict; use lib $ENV{CVSROOT}; use CVSROOT::cfg; - - my $CVSROOT = $ENV{CVSROOT} || die "Can't determine CVSROOT (commitcheck)!\n"; -my $MINCVSVERSION = "1090900"; # 1.9.9p0 # Check that the user is committing on the right machine. # @@ -47,7 +44,7 @@ my $VERSTR = `/usr/bin/cvs -v`; $VERSTR =~ s/.*Concurrent\D*(\S*).*/$1/s; $VERSTR =~ s/\D+/./g; my $VERSION = sprintf "%d%02d%02d%02d\n", split /\./, $VERSTR; -unless ( $VERSION && $VERSION >= $MINCVSVERSION ) { +unless ($VERSION && $VERSION >= $cfg::MINCVSVERSION) { print "The wrong version of CVS is installed (commitcheck)!\n"; exit 1; } |