1MK_CMDS(1)                  General Commands Manual                 MK_CMDS(1)
2
3
4

NAME

6       mk_cmds - error table compiler
7

SYNOPSIS

9       mk_cmds file
10

DESCRIPTION

12       Mk_cmds converts a table listing command names and associated help mes‐
13       sages into a C source file suitable for use with the ss(3) library.
14
15       The source file name must end with a suffix of ``.ct''; the  file  con‐
16       sists of a declaration supplying the name of the command table:
17
18       command_table name
19
20       followed by entries of the form:
21
22       [ request | unimplemented ] name, " string "[, abbrev]...;
23
24       and a final
25
26       end
27
28       to indicate the end of the table.
29
30       A  C  source file is generated which should be compiled and linked with
31       the object files use the ss library.
32
33       A ``#'' in the source file is treated as a comment character,  and  all
34       remaining text to the end of the source line will be ignored.
35
36

BUGS

38       Since  the original mk_cmds uses a very simple parser based on yacc(1),
39       and this current version of mk_cmds  uses  an  awk/sed  combination  of
40       scripts, its error recovery leaves much to be desired.
41
42

SEE ALSO

44       ss (3)
45
46
47
48
49E2FSPROGS                            2003                           MK_CMDS(1)
Impressum