summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1997-03-28 14:40:39 +0000
committerwosch <wosch@FreeBSD.org>1997-03-28 14:40:39 +0000
commit3ad19c4ae3d0f156867d86a310e2d6d0f40a7a51 (patch)
treeca7846f7e7759b9d38e8c1c594b8e8d1bb48219f /tools
parent78634ace4c2c8bab78043d0db1cbd9007ade8328 (diff)
downloadFreeBSD-src-3ad19c4ae3d0f156867d86a310e2d6d0f40a7a51.zip
FreeBSD-src-3ad19c4ae3d0f156867d86a310e2d6d0f40a7a51.tar.gz
Add ac which check if the FreeBSD handbook is in sync with the committers list
Diffstat (limited to 'tools')
-rw-r--r--tools/diag/README2
-rw-r--r--tools/diag/ac/ac26
2 files changed, 28 insertions, 0 deletions
diff --git a/tools/diag/README b/tools/diag/README
index 44ef7ad..18f7b68 100644
--- a/tools/diag/README
+++ b/tools/diag/README
@@ -5,3 +5,5 @@ somewhere, for instance by traversing a kernel-structure and verifying
the integrity.
Please make a subdir per program, and add a brief description to this file.
+
+ac check if the FreeBSD handbook is in sync with the committers list
diff --git a/tools/diag/ac/ac b/tools/diag/ac/ac
new file mode 100644
index 0000000..f2815e5
--- /dev/null
+++ b/tools/diag/ac/ac
@@ -0,0 +1,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
+#
+# $Id$
+
+: ${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