[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Howto use %exclude with %doc files
- From: Patrick <rpm-list puzzled xs4all nl>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Howto use %exclude with %doc files
- Date: Tue, 27 Mar 2007 15:30:33 +0200
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]