Re: use of %%dir in spec file

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

 




On Jan 14, 2010, at 5:40 AM, devzero2000 wrote:

On Thu, Jan 14, 2010 at 1:26 AM, Todd Rinaldo <toddr@xxxxxxxxxx> wrote:
I'm trying to run a find inside a specfile and in the command line, I need it to have 

(cd $RPM_BUILD_ROOT && find usr/local -type d -printf "%%dir /%p\n") >> file.list

How do I prevent the spec file interpreter from trying to interpret %dir?


With something like this for example

%{__find} $RPM_BUILD_ROOT%{basedir} -type d -printf "%%%%dir %%p\n"

hth
_______________________________________________

Yep. I have to escape my escape. Works like a champ thanks a bunch.

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux