aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-05-26 12:07:36 +0800
committerpeter <peter@FreeBSD.org>1997-05-26 12:07:36 +0800
commit7e1c02ff21791b128177c2c68168ee773b45177d (patch)
tree0fe709a4db3200504c71398fa7f01c65958838f6 /CVSROOT
parent2109e3880aa495c168cb82da8175f46853d15e3d (diff)
downloadfreebsd-ports-graphics-7e1c02ff21791b128177c2c68168ee773b45177d.tar.gz
freebsd-ports-graphics-7e1c02ff21791b128177c2c68168ee773b45177d.tar.zst
freebsd-ports-graphics-7e1c02ff21791b128177c2c68168ee773b45177d.zip
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.
Diffstat (limited to 'CVSROOT')
-rwxr-xr-xCVSROOT/commitcheck6
1 files changed, 3 insertions, 3 deletions
diff --git a/CVSROOT/commitcheck b/CVSROOT/commitcheck
index 2179019b9c7..4e3b9598914 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