[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openpkg-dev
Subject:    Re: [CVS] OpenPKG: openpkg-src/openpkg-tool/ openpkg-build.pl openpkg-tool...
From:       "Ralf S. Engelschall" <rse () engelschall ! com>
Date:       2002-12-30 22:55:57
[Download RAW message or body]

On Mon, Dec 30, 2002, Michael van Elst wrote:

> > packages. Michael, can you adjust "openpkg index" and "openpkg build"
> > for us to fit into the "new world order"?
>
> I'll have a look tomorrow.
>
> Can you describe the syntax for %options ? What is the -pXXX ?

Forget "%options", this is just the macro for expanding the "%option"
in "%description". You only have to care about "%option", of course.

Anyway, the syntax is:

%option <variable> <value>
%options [-p<padding>]

where "%option <variable> <value>" is syntactically equivalent with
"%ifndef <variable> %define <variable> <value> %endif" plus remembering
the string "%option <variable> %{<variable>}" in an internal macro.
Then "%options" expands this internal macro back into the "%option
<variable> <value>" strings. If a <padding> is given, the <variable>
part in "%option <variable> <value>" is padding with spaces to a fixed
width in order to get a nice aligned output in %description texts.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic