From: John Mylchreest Date: Fri, 10 Dec 2004 23:17:11 +0000 (+0000) Subject: Fixes bug #65593 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6205733541141e4e03be681ca82e1ce02457ccd5;p=gentoo.git Fixes bug #65593 --- diff --git a/eclass/fixheadtails.eclass b/eclass/fixheadtails.eclass index c16116d65dbc..b2825124aac8 100644 --- a/eclass/fixheadtails.eclass +++ b/eclass/fixheadtails.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/fixheadtails.eclass,v 1.3 2004/06/25 00:39:48 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/fixheadtails.eclass,v 1.4 2004/12/10 23:17:11 johnm Exp $ # # Author John Mylchreest @@ -19,6 +19,7 @@ DEPEND="${DEPEND} >=sys-apps/sed-4" do_sed_fix() { sed -i \ -e 's/head -\(.*\)/head -n \1/' \ + -e 's/tail \([-+]\)\(.*\)c/tail -c \1\2/' \ -e 's/tail \([-+]\)\(.*\)/tail -n \1\2/' ${1} || \ die "sed ${1} failed" }