summaryrefslogtreecommitdiffstats
path: root/CVSROOT/commitcheck
blob: 2545428860de1180d9f378b2fb7038d259558c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/sh
#
# $Id: commitcheck,v 1.4 1996/02/07 14:35:35 peter Exp $

case "`hostname`" in
freefall*)
	:
	;;
*)
	echo "Please commit on 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
   fi
fi

exit 1
OpenPOWER on IntegriCloud