[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] `groff' options for other programs

From: Bernd Warken
Subject: [Groff] `groff' options for other programs
Date: Thu, 25 Apr 2013 14:02:24 +0200 (CEST)

`grog' and `groffer' (maybe something else in the future) need the
information of the options used by `groff'.

I wrote a Perl program `' being stored in
`<groff_top_dir>/src/roff/groff'.  In this directory there is also
the file `groff.cpp'.

The Perl program reads from `groff.cpp' the function `synopsis'
that contains information of the `groff' options.  From this
there information, a 2-liner is created and written to STDOUT.
The actual output reads:

noarg: abceghijklpstvzCENRSUVXZ
witharg: FmTfwWMdrnoPDKLI

That information can easily used by Perl.  So `grog' and `groffer'
can run `' before the run of `make' and
process its output.

By the run of `make', `' is run and its output
is stored into the file `'.  By `make install',
this output file isx stored in the `groff libdir'.  After the
`make' installation, this output file can be used by `grog' and
`groffer' without using `'.

Is there any trouble with this concept?

Bernd Warken

reply via email to

[Prev in Thread] Current Thread [Next in Thread]