Commit 7ec6f0a0 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(check): Create privbits.tmp. Check @priv{} usage. (Bug 207).

parent fa8f0ca8
# $Id: Makefile.am,v 1.38 2001/12/31 22:41:04 ceder Exp $
# $Id: Makefile.am,v 1.39 2002/01/01 10:34:18 ceder Exp $
# Copyright (C) 1998-1999, 2001 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -192,6 +192,15 @@ check-doc: Protocol-A.notab lyskomd.notab info
| sed 's/.*/^@errorcode{&}$$/' \
> errorcodes-@.tmp
## Create a list of all privilege bits.
tac $(top_srcdir)/src/include/kom-types.h \
| sed -n -e '/} Priv_bits;/,/typedef[ ]struct/!d' \
-e 's/_/-/g' \
-e 's/.* int[ ]\([---a-z0-9]*\)[ ]*:.*/\1/p' \
| tee privbits.tmp \
| sed 's/.*/^@priv{&}$$/' \
> privbits-@.tmp
## Create a list of all @x{}-constructs used.
sed -e '/@bye/,$$d' \
-e '/^@c /d' \
......@@ -214,7 +223,6 @@ check-doc: Protocol-A.notab lyskomd.notab info
## constructs are checked by makeinfo, so we ignore them as
## well. @t{} are not interresting.
## FIXME (bug 206): @field{} should be checked.
## FIXME (bug 207): @priv{} should be checked.
cat constructs.tmp \
| grep -v '@rarg{' \
| grep -v '@aarg{' \
......@@ -224,7 +232,6 @@ check-doc: Protocol-A.notab lyskomd.notab info
| grep -v '@t{' \
| grep -v '@footnote{' \
| grep -v '@field{' \
| grep -v '@priv{' \
| grep -v '@anchor{' \
| grep -v '@lt{' \
| grep -v \
......@@ -235,6 +242,7 @@ check-doc: Protocol-A.notab lyskomd.notab info
-f miscs-@.tmp \
-f conftypes-@.tmp \
-f errorcodes-@.tmp \
-f privbits-@.tmp \
> constructs-@.tmp
## If the diff command below finds any differences, you have to
## check that they are expected, and then manually update
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment