Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o, elvanor@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-util/eclipse-sdk: eclipse-sdk-3.2.1-r2.ebuild ChangeLog eclipse-sdk-3.3.1.1.ebuild
Date: Mon, 21 Jan 2008 22:12:20
Message-Id: 20080121221211.GA3868@comet.science.oregonstate.edu
1 On 12:15 Mon 21 Jan , Jean-Noel Rivasseau (elvanor) wrote:
2 > 1.1 dev-util/eclipse-sdk/eclipse-sdk-3.3.1.1.ebuild
3 >
4 > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.3.1.1.ebuild?rev=1.1&view=markup
5 > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.3.1.1.ebuild?rev=1.1&content-type=text/plain
6
7 > src_unpack() {
8 > unpack "${A}"
9 > patch-apply
10 > remove-bundled-stuff
11 >
12 > # No warnings / Java 5 / all output should be directed to stdout
13 > find "${S}" -type f -name '*.xml' -exec \
14 > sed -r -e "s:(-encoding ISO-8859-1):\1 -nowarn:g" -e "s:(\"compilerArg\" value=\"):\1-nowarn :g" \
15 > -e "s:(<property name=\"javacSource\" value=)\".*\":\1\"1.5\":g" \
16 > -e "s:(<property name=\"javacTarget\" value=)\".*\":\1\"1.5\":g" -e "s:output=\".*(txt|log).*\"::g" -i {} \;
17
18 I think this will end up calling sed a large number of times, since
19 -exec runs per file found instead of once on all files. If you instead
20 pipe find output to xargs sed, that might work better. Depending on how
21 many files are involved, this could be a significant difference.
22
23 Thanks,
24 Donnie
25 --
26 gentoo-dev@l.g.o mailing list

Replies