Merge from vendor branch OPENSSH:
[dragonfly.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 # $DragonFly: src/tools/diag/ac/ac,v 1.2 2003/06/17 04:29:11 dillon Exp $
10
11 : ${CVSROOT=/home/ncvs}
12 contrib=doc/en_US.ISO8859-1/books/handbook/staff/chapter.sgml
13 access=CVSROOT/access
14 cvs='cvs -Q co -p'
15 tmp=${TMPDIR-/tmp}/_committers
16
17 $cvs $contrib |
18         perl -ne 'print "$1\n" if /<para>\&a\.([^;]+)/' |
19         sort -u > $tmp.contrib
20
21 $cvs $access |
22         sed 's/^\#.*//g' |
23         sort -u > $tmp.access
24
25 diff -u $tmp.access $tmp.contrib
26 rm -f $tmp.access $tmp.contrib