genmsg — Generate a Message Source File by Extracting Messages from Source Files

Synopsis

/usr/bin/genmsg [-abdfrntx][-c message-tag] [-g project-file] 
  [-l project-file][-m prefix][-M suffix] 
  [-o message-file][-p preprocessor][-s set-tags] file... 

Description

genmsg extracts message strings with calls to catgets(3C) from source files and writes them in a format suitable for input to gencat(1).

Invocation

genmsg reads one or more input files and, by default, generates a message source file whose name is composed of the first input file name with a .msg suffix. If you specify the -o option, genmsg uses the option argument for its output file.

Command Output File
genmsg prog.c prog.c.msg
gensmg main.c util.c tool.c main.c.msg
genmsg -o prog.msg ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.