summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-11-13 20:58:41 +0000
committerMike Frysinger <vapier@gentoo.org>2006-11-13 20:58:41 +0000
commitf565d5a289b1596ffc97d2716cbba48e679e9ff7 (patch)
tree5f2871c0da146a28859cf554445483e42e606e05 /eclass/eutils.eclass
parentDropped ppc-macos keyword, see you in prefix. (diff)
downloadgentoo-2-f565d5a289b1596ffc97d2716cbba48e679e9ff7.tar.gz
gentoo-2-f565d5a289b1596ffc97d2716cbba48e679e9ff7.tar.bz2
gentoo-2-f565d5a289b1596ffc97d2716cbba48e679e9ff7.zip
rewrite edos2unix() to use echo|xargs sed -i rather than a loop with tempfiles
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass8
1 files changed, 2 insertions, 6 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 856bff530309..1df43022b866 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.262 2006/11/12 00:29:48 kanaka Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.263 2006/11/13 20:58:41 vapier Exp $
#
# This eclass is for general purpose functions that most ebuilds
# have to implement themselves.
@@ -757,11 +757,7 @@ enewgroup() {
#
# edos2unix(file, <more files> ...)
edos2unix() {
- for f in "$@"
- do
- cp "${f}" ${T}/edos2unix
- sed 's/\r$//' ${T}/edos2unix > "${f}"
- done
+ echo "$@" | xargs sed -i 's/\r$//'
}