Initial import from FreeBSD RELENG_4:
[games.git] / tools / diag / ac / ac
1 #!/bin/sh
2 # Copyright (c) March 1997. Wolfram Schneider <wosch@FreeBSD.ORG>. Berlin.
3 #           (c) 1999, Alexey Zelkin <phantom@FreeBSD.org>
4 # This script is dedicated to the FreeBSD core team.
5 #
6 # ac - check if the FreeBSD handbook is in sync with the committers list
7 #
8 # $FreeBSD: src/tools/diag/ac/ac,v 1.3.2.1 2002/01/04 19:30:12 phantom Exp $
9
10 : ${CVSROOT=/home/ncvs}
11 contrib=doc/en_US.ISO8859-1/books/handbook/staff/chapter.sgml
12 access=CVSROOT/access
13 cvs='cvs -Q co -p'
14 tmp=${TMPDIR-/tmp}/_committers
15
16 $cvs $contrib |
17         perl -ne 'print "$1\n" if /<para>\&a\.([^;]+)/' |
18         sort -u > $tmp.contrib
19
20 $cvs $access |
21         sed 's/^\#.*//g' |
22         sort -u > $tmp.access
23
24 diff -u $tmp.access $tmp.contrib
25 rm -f $tmp.access $tmp.contrib