HP 9000 User Manual page 131

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

7
Once a message list is available, message numbers can be assigned to new
messages and the source program appropriately modified with new
catgets
calls that have the newly assigned message numbers. The new messages can
then be added to the message text source file and a new message catalog
generated.
Although
gencat
can merge new messages into an existing message catalog, it
is just as easy and less error prone to re-create the complete message catalog.
Once the new
catgets
calls have been added to the source program, this can
be done as the following:
Remove previous message catalog to preclude update.
rm -f prog.cat
Generate a message text source file with the new messages.
findmsg prog.c >prog.msg
Generate the new catalog.
gencat prog.cat prog.msg
List the new messages for review.
dumpmsg prog.cat
Using "make" Files
With the
.msg
and .
cat
file suffix conventions, it is possible to use
make
to
automate message catalog creation. The following
make
file illustrates the
procedure:
SOURCE
=
prog.c sub.c
all:
prog prog. cat
prog.msg $(SOURCE)
findmsg $(SOURCE)
>$~
.msg.cat:
gencat $*.cat $*.msg
7 -24 The Message Catalog System

Advertisement

Table of Contents
loading

Table of Contents