Fixes bug #65593
authorJohn Mylchreest <johnm@gentoo.org>
Fri, 10 Dec 2004 23:17:11 +0000 (23:17 +0000)
committerJohn Mylchreest <johnm@gentoo.org>
Fri, 10 Dec 2004 23:17:11 +0000 (23:17 +0000)
eclass/fixheadtails.eclass

index c16116d65dbc829e88fb458e60c5389f8da3a015..b2825124aac8b2cb707158dbbf17e635b2a08e09 100644 (file)
@@ -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 <johnm@gentoo.org>
 
@@ -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"
 }