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

(check): Create files for all error codes that are implemented. Check

	@errorcode{} usage.  (Bug 205).
parent a3efe4ec
# $Id: Makefile.am,v 1.37 2001/12/31 22:12:37 ceder Exp $
# $Id: Makefile.am,v 1.38 2001/12/31 22:41:04 ceder Exp $
# Copyright (C) 1998-1999, 2001 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -158,6 +158,40 @@ check-doc: Protocol-A.notab lyskomd.notab info
| sed 's/.*/^@type{&}$$/' \
> types-@.tmp
## Create a list of all error codes.
cat $(top_srcdir)/src/include/kom-errno.h \
| sed -n -e '/enum kom_err/,/};/!d' \
-e 's/ *KOM_\([A-Z_]*\) *= *\([0-9]*\),.*/\2 \1/p' \
| tr '[A-Z]' '[a-z]' \
| sed -e 's/_/-/g' \
-e 's/ not-impl$$/ not-implemented/' \
-e 's/ obsolete$$/ obsolete-call/' \
-e 's/ pwd$$/ invalid-password/' \
-e 's/ long-str$$/ string-too-long/' \
-e 's/ login$$/ login-first/' \
-e 's/ conf-zero$$/ conference-zero/' \
-e 's/ undef-conf$$/ undefined-conference/' \
-e 's/ undef-pers$$/ undefined-person/' \
-e 's/ access$$/ access-denied/' \
-e 's/ perm$$/ permission-denied/' \
-e 's/ conf-exists$$/ conference-exists/' \
-e 's/ pers-exists$$/ person-exists/' \
-e 's/ letter-box$$/ letterbox/' \
-e 's/ ldb-err$$/ ldb-error/' \
-e 's/ ill-misc$$/ illegal-misc/' \
-e 's/ comm-limit$$/ comment-limit/' \
-e 's/ foot-limit$$/ footnote-limit/' \
-e 's/ undef-session$$/ undefined-session/' \
-e 's/ tempfail$$/ temporary-failure/' \
-e 's/ anon-rejected$$/ anonymous-rejected/' \
-e 's/ ill-aux$$/ illegal-aux-item/' \
-e 's/ aux-perm$$/ aux-item-permission/' \
| tee errorcodes-numbered.tmp \
| sed 's/[0-9]* //' \
| tee errorcodes.tmp \
| sed 's/.*/^@errorcode{&}$$/' \
> errorcodes-@.tmp
## Create a list of all @x{}-constructs used.
sed -e '/@bye/,$$d' \
-e '/^@c /d' \
......@@ -179,7 +213,6 @@ check-doc: Protocol-A.notab lyskomd.notab info
## are checked below, so ignore them here. Various @ref
## constructs are checked by makeinfo, so we ignore them as
## well. @t{} are not interresting.
## FIXME (bug 205): @errocode{} should be checked.
## FIXME (bug 206): @field{} should be checked.
## FIXME (bug 207): @priv{} should be checked.
cat constructs.tmp \
......@@ -190,7 +223,6 @@ check-doc: Protocol-A.notab lyskomd.notab info
| grep -v '@pxref{' \
| grep -v '@t{' \
| grep -v '@footnote{' \
| grep -v '@errorcode{' \
| grep -v '@field{' \
| grep -v '@priv{' \
| grep -v '@anchor{' \
......@@ -202,6 +234,7 @@ check-doc: Protocol-A.notab lyskomd.notab info
-f async-@.tmp \
-f miscs-@.tmp \
-f conftypes-@.tmp \
-f errorcodes-@.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