Commit 6caabdbf authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(check-doc): Use filterlines.py instead of "grep -v -f ...". Adjust

	the contents of several temporary files accordingly: they now
	contains lines to ignore, not regexp patterns to ignore.  Use
	tac.py instead of tac; not everybody has GNU textutils
	installed.
parent 3f8f2ac5
# $Id: Makefile.am,v 1.47 2002/08/17 17:33:31 ceder Exp $
# $Id: Makefile.am,v 1.48 2002/08/17 18:23:47 ceder Exp $
# Copyright (C) 1998-1999, 2001-2002 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -134,7 +134,7 @@ check-doc: Protocol-A.notab lyskomd.notab info
sed -n 's/[0-9][0-9]* : \([^ ]*\) (.*/\1/p' \
$(top_srcdir)/run-support/aux-items.conf \
| tee aux-items.tmp \
| sed 's/.*/^@aux{&}$$/' \
| sed 's/.*/@aux{&}/' \
> aux-items-@.tmp
## Create a list of all requests.
......@@ -147,11 +147,11 @@ check-doc: Protocol-A.notab lyskomd.notab info
| tee requests-numbered.tmp \
| awk '{print $$2}' \
| tee requests.tmp \
| sed 's/.*/^@req{&}$$/' \
| sed 's/.*/@req{&}/' \
> requests-@.tmp
sed 's/.*/^@reqlink{&}$$/' \
sed 's/.*/@reqlink{&}/' \
< requests.tmp >> requests-@.tmp
sed 's/.*/^@reqdlink{&}$$/' \
sed 's/.*/@reqdlink{&}/' \
< requests.tmp >> requests-@.tmp
## Create a list of all async messages.
......@@ -163,11 +163,11 @@ check-doc: Protocol-A.notab lyskomd.notab info
| tee asyncs-numbered.tmp \
| awk '{print $$2}' \
| tee asyncs.tmp \
| sed 's/.*/^@async{&}$$/' \
| sed 's/.*/@async{&}/' \
> async-@.tmp
sed 's/.*/^@asynclink{&}$$/' \
sed 's/.*/@asynclink{&}/' \
< asyncs.tmp >> async-@.tmp
sed 's/.*/^@asyncdlink{&}$$/' \
sed 's/.*/@asyncdlink{&}/' \
< asyncs.tmp >> async-@.tmp
## Create a list of all miscinfos.
......@@ -179,18 +179,18 @@ check-doc: Protocol-A.notab lyskomd.notab info
| tee miscs-numbered.tmp \
| sed 's/[0-9]* //' \
| tee miscs.tmp \
| sed 's/.*/^@misc{&}$$/' \
| sed 's/.*/@misc{&}/' \
> miscs-@.tmp
## Create a list of all conf-type bits.
tac $(top_srcdir)/src/include/kom-types.h \
python $(srcdir)/tac.py < $(top_srcdir)/src/include/kom-types.h \
| sed -e '/} Conf_type/,/typedef/!d' \
| sed -n -e 's/.*unsigned int[ ]*\([^ :]*\)[ ]*:.*/\1/p' \
| sed -e 's/_/-/g' \
-e 's/allow-anon/allow-anonymous/' \
-e 's/letter-box/letterbox/' \
| tee conftypes.tmp \
| sed 's/.*/^@conftype{&}$$/' \
| sed 's/.*/@conftype{&}/' \
> conftypes-@.tmp
## Create a list of all types. We do this from the
......@@ -198,7 +198,7 @@ check-doc: Protocol-A.notab lyskomd.notab info
## own funny names in a few places.
sed -n 's/@tindex //p' < $(srcdir)/Protocol-A.texi \
| tee types.tmp \
| sed 's/.*/^@type{&}$$/' \
| sed 's/.*/@type{&}/' \
> types-@.tmp
## Create a list of all error codes.
......@@ -232,16 +232,16 @@ check-doc: Protocol-A.notab lyskomd.notab info
| tee errorcodes-numbered.tmp \
| sed 's/[0-9]* //' \
| tee errorcodes.tmp \
| sed 's/.*/^@errorcode{&}$$/' \
| sed 's/.*/@errorcode{&}/' \
> errorcodes-@.tmp
## Create a list of all privilege bits.
tac $(top_srcdir)/src/include/kom-types.h \
python $(srcdir)/tac.py < $(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{&}$$/' \
| sed 's/.*/@priv{&}/' \
> privbits-@.tmp
## Create a list of all @x{}-constructs used.
......@@ -276,15 +276,15 @@ check-doc: Protocol-A.notab lyskomd.notab info
| grep -v '@field{' \
| grep -v '@anchor{' \
| grep -v '@lt{' \
| grep -v \
-f aux-items-@.tmp \
-f requests-@.tmp \
-f types-@.tmp \
-f async-@.tmp \
-f miscs-@.tmp \
-f conftypes-@.tmp \
-f errorcodes-@.tmp \
-f privbits-@.tmp \
| python $(srcdir)/filterlines.py \
aux-items-@.tmp \
requests-@.tmp \
types-@.tmp \
async-@.tmp \
miscs-@.tmp \
conftypes-@.tmp \
errorcodes-@.tmp \
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