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

Re: expand trick in macro files?



> > 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)}
> 
> What do you mean by "equivalent"?
> 
> What's wrong with using %{expand:%%define some_name %{some_expansion}} ?

In a macro file (/usr/lib/rpm/macros)? I get this error:

error: Macro % has illegal name (%define)

When using in a spec file it works fine.

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]





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