Re: Howto use %exclude with %doc files

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

 



On Tue, 2007-03-27 at 14:56 +0200, Jos Vos wrote:
[snip]
> The %doc arguments are directly passed as arguments to "cp -fr" or so
> AFAIK, so there is no way to use %exclude there.
> 
> Try to use shell-style regexps to minimize the list.  I've used this
> trick in the past and it usually is doable, e.g. something like:
> 
> %files
> %doc README-[a-oq-z]* README-perhaps-something-else.txt
> 
> %files package
> %doc README-package.txt
> 
> P.S.
> Be aware of locale-specific ordering.  I think the expressions are
> evaluated with LANG=C, so [a-c] does not include "B" (luckily),
> while in UTF-8 locales it does.

Thanks Jos. I will give this a try although I am not very familiar with
regexp thingies. Googled around and found a few nice newbie links. Maybe
useful to others:
http://www.regular-expressions.info/
http://zez.org/article/articleprint/11/
http://www.night-ray.com/regex.pdf

Thanks,
Patrick

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/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