summaryrefslogtreecommitdiffstats
path: root/tools/diag/ac/ac
blob: 6bff17339a14351bc58494cb32a1ac4c5c16394b (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
#!/bin/sh
# Copyright (c) March 1997. Wolfram Schneider <wosch@FreeBSD.ORG>. Berlin.
# This script is dedicated to the FreeBSD core team.
#
# ac - check if the FreeBSD handbook is in sync with the committers list
#
# $FreeBSD$

: ${CVSROOT=/usr/cvs}
contrib=src/share/doc/handbook/contrib.sgml
avail=CVSROOT/avail
cvs='cvs -Q co -p'
tmp=${TMPDIR-/tmp}/_committers

$cvs $contrib | 
	perl -ne 'print if /contrib:core/ .. /contrib:doc/' |
	perl -ne 'print "$1\n" if /<item>\&a\.([^;]+)/' | 
	sort -u > $tmp.contrib

$cvs $avail | 
	sed -n 's/^avail\|//p' | 
	perl -npe 's/,/\n/g' | 
	sort -u > $tmp.avail

diff -u $tmp.avail $tmp.contrib
rm -f $tmp.avail $tmp.contrib
OpenPOWER on IntegriCloud