On Wed, Oct 11, 2006, Doug Summers wrote:
> OK - how do I determine this with 'shtool platform'? I tried using
> 'shtool platform -t' but it complains about needing a type? Can you give
> me a hint?
To expand a macro you can use the 'openpkg rpm --eval' command, in your
case
$ openpkg rpm --eval '%{l_platform -t}'
Using the definitions in etc/openpkg/rpmmacros, which are rather complex
in the case, this expands to the output of
shtool platform -n -L -S "" -C "+" -F "%<at>-%<st>"
-cs
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [email protected]