/[gentoo-x86]/eclass/fixheadtails.eclass
Gentoo

Diff of /eclass/fixheadtails.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/fixheadtails.eclass,v 1.9 2005/07/11 15:08:06 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/fixheadtails.eclass,v 1.10 2005/12/20 01:31:53 vapier Exp $
4# 4#
5# Author John Mylchreest <johnm@gentoo.org> 5# Author John Mylchreest <johnm@gentoo.org>
6 6
7DEPEND=">=sys-apps/sed-4" 7DEPEND=">=sys-apps/sed-4"
8 8
33 done 33 done
34} 34}
35 35
36ht_fix_all() { 36ht_fix_all() {
37 local MATCHES 37 local MATCHES
38 MATCHES="$(grep -l -i -R -e "head -[ 0-9]" -e "tail [+-][ 0-9]" * | sort -u)" 38 MATCHES=$(grep -l -s -i -R -e "head -[ 0-9]" -e "tail [+-][ 0-9]" * | sort -u)
39 [[ -n ${MATCHES} ]] \ 39 [[ -n ${MATCHES} ]] \
40 && ht_fix_file ${MATCHES} \ 40 && ht_fix_file ${MATCHES} \
41 || einfo "No need for ht_fix_all anymore !" 41 || einfo "No need for ht_fix_all anymore !"
42} 42}

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20