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

Re: expand trick in macro files?



Circa 2002-Jun-25 12:38:47 -0300 dixit Gustavo Niemeyer:

: Hello again!
: 
: Is there any known solution to use the expand macro trick, used to
: avoid repetitive expansion, inside macro files?
: 
: I'd like to do something equivalent to this:
: 
: %{expand:%%home %(cd; pwd)}

This works for me in ~/.rpmmacros:

  %HOME           %{expand:%%(cd; pwd)}
  %_topdir        %{HOME}/project/rpm

-- 
jim knoble  |  jmknoble@pobox.com  |  http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)

Attachment: pgp00010.pgp
Description: PGP signature


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