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

Re: Is it possible to delay expansion of %%define macros?



Abel Cheung wrote:

Hi all,

As title, can %%define macros be delayed till some point later? I have
a package that does some %post script based on the list of files
installed onto system during "make install". So when I try to do:

   %install
   make install
   %define file_list %(cd /somewhere && echo *)

It won't work because it is immediately expanded upon reading spec file,
and "make install" is not executed yet. So is it possible at
all to control the expansion time of macros?



Delayed expansion is there, add appropriate number of % chars to escape.


What's not there is a definition (and guarantee) of where and when expansions will occur.


73 de Jeff







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