diff options
author | peter <peter@FreeBSD.org> | 1997-05-26 04:07:36 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-05-26 04:07:36 +0000 |
commit | 7e1c02ff21791b128177c2c68168ee773b45177d (patch) | |
tree | 0fe709a4db3200504c71398fa7f01c65958838f6 | |
parent | 2109e3880aa495c168cb82da8175f46853d15e3d (diff) | |
download | FreeBSD-ports-7e1c02ff21791b128177c2c68168ee773b45177d.zip FreeBSD-ports-7e1c02ff21791b128177c2c68168ee773b45177d.tar.gz |
Update version check to cope with the probability that cvs will soon bump
it's version digits into double digits, eg: cvs-1.10.0. Bump minimum
number for the version installed on freefall.
-rwxr-xr-x | CVSROOT/commitcheck | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CVSROOT/commitcheck b/CVSROOT/commitcheck index 2179019..4e3b959 100755 --- a/CVSROOT/commitcheck +++ b/CVSROOT/commitcheck @@ -1,6 +1,6 @@ #! /bin/sh # -# $Id: commitcheck,v 1.5 1996/12/23 05:42:37 peter Exp $ +# $Id: commitcheck,v 1.6 1997/05/21 15:58:59 peter Exp $ # # BEWARE: If you are "borrowing" this code for use on another cvs @@ -20,8 +20,8 @@ esac # # Ensure the minimum version of cvs is installed. # -VERS=`/usr/bin/cvs -v | awk '$1 == "Concurrent" { print $5 }' | tr -d .` -if [ "x${VERS}" = "x" -o ${VERS} -lt 180 ]; then +VERS=`/usr/bin/cvs -v | awk '$1 == "Concurrent" { print $5 }' | awk -F. '{printf "%d%02d%02d\n",$1,$2,$3}'` +if [ "x${VERS}" = "x" -o ${VERS} -lt 10909 ]; then echo "The wrong version of CVS is installed!" 1>&2 exit 1 fi |