diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-11-13 20:58:41 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-11-13 20:58:41 +0000 |
commit | f26adea63ac52dd1c89b56d15bdf487789ba348d (patch) | |
tree | c6306f6e566c62eef59842ef3ad010b8947bb4dd /eclass | |
parent | Dropped ppc-macos keyword, see you in prefix. (diff) | |
download | historical-f26adea63ac52dd1c89b56d15bdf487789ba348d.tar.gz historical-f26adea63ac52dd1c89b56d15bdf487789ba348d.tar.bz2 historical-f26adea63ac52dd1c89b56d15bdf487789ba348d.zip |
rewrite edos2unix() to use echo|xargs sed -i rather than a loop with tempfiles
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/eutils.eclass | 8 |
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$//' } |