#! /bin/sh # # $Id: commitcheck,v 1.1 2000/11/01 21:31:06 dawes Exp $ #COMMITHOST=public.xfree86.org #case "`hostname`" in #$COMMITHOST) # : # ;; #*) # echo "Please commit on cvs.xfree86.org ($COMMITHOST) ..." # 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 -r ${1+"$@"}; then exit 0 fi #fi exit 1