diff options
author | peter <peter@FreeBSD.org> | 1996-12-23 13:42:37 +0800 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-12-23 13:42:37 +0800 |
commit | a205fb200f0c5b0ee39a882a807cd162180b743a (patch) | |
tree | c85a51b4ae0f5d7bff3983f9c01f84c406f8a143 /CVSROOT | |
parent | 99a65c9ea0a40a756329ef1c8b85443cf5e7084c (diff) | |
download | freebsd-ports-gnome-a205fb200f0c5b0ee39a882a807cd162180b743a.tar.gz freebsd-ports-gnome-a205fb200f0c5b0ee39a882a807cd162180b743a.tar.zst freebsd-ports-gnome-a205fb200f0c5b0ee39a882a807cd162180b743a.zip |
Add a check to make sure that cvs on freefall isn't spammed again with
an older version!
Diffstat (limited to 'CVSROOT')
-rwxr-xr-x | CVSROOT/commitcheck | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/CVSROOT/commitcheck b/CVSROOT/commitcheck index 4f623836bcd1..2545428860de 100755 --- a/CVSROOT/commitcheck +++ b/CVSROOT/commitcheck @@ -1,6 +1,6 @@ #! /bin/sh # -# $Id$ +# $Id: commitcheck,v 1.4 1996/02/07 14:35:35 peter Exp $ case "`hostname`" in freefall*) @@ -11,6 +11,13 @@ freefall*) exit 1 esac +VERS=`/usr/bin/cvs -v | awk '$1 == "Concurrent" { print $5 }' | tr -d .` +if [ "x${VERS}" = "x" -o ${VERS} -lt 180 ]; then + echo "The wrong version of CVS is installed!" + exit 1 +fi + + if $CVSROOT/CVSROOT/cvs_acls.pl ${1+"$@"}; then if $CVSROOT/CVSROOT/commit_prep.pl ${1+"$@"}; then exit 0 |