From: | "Piotr Jaroszyński" <peper@g.o> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] New emul-libs.eclass | ||
Date: | Mon, 19 Feb 2007 20:42:57 | ||
Message-Id: | 200702192140.10187.peper@gentoo.org | ||
In Reply to: | [gentoo-dev] New emul-libs.eclass by Simon Stelling |
1 | ALLOWED=${ALLOWED:-^${S}/etc/env.d} |
2 | If you are using regex here, why don't you use it in find? |
3 | |
4 | find "${S}" ! -type d ! -name '*.so*' ! -regex ${ALLOWED} -print0 | |
5 | xargs -0 /bin/rm -f |
6 | |
7 | Note that you will need to change ^${S}/etc/env.d to ^${S}/etc/env\.d.* as it |
8 | needs to be a full match( btw. you are not escaping a "." in your regex ) |
9 | |
10 | -- |
11 | Best Regards, |
12 | Piotr Jaroszyński |
13 | -- |
14 | gentoo-dev@g.o mailing list |
Subject | Author |
---|---|
Re: [gentoo-dev] New emul-libs.eclass | Mike Frysinger <vapier@g.o> |