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

Diff of /eclass/eutils.eclass

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

Revision 1.416 Revision 1.417
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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/eutils.eclass,v 1.416 2013/03/31 02:17:12 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.417 2013/04/25 18:38:02 vapier Exp $
4 4
5# @ECLASS: eutils.eclass 5# @ECLASS: eutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: many extra (but common) functions that are used in ebuilds 8# @BLURB: many extra (but common) functions that are used in ebuilds
481 eqawarn "${rel_paths}" 481 eqawarn "${rel_paths}"
482 fi 482 fi
483 483
484 # Dynamically detect the correct -p# ... i'm lazy, so shoot me :/ 484 # Dynamically detect the correct -p# ... i'm lazy, so shoot me :/
485 local patch_cmd 485 local patch_cmd
486 # Handle aliased patch command #404447 #461568
487 local patch="patch"
488 eval $(alias patch 2>/dev/null | sed 's:^alias ::')
486 while [[ ${count} -lt 5 ]] ; do 489 while [[ ${count} -lt 5 ]] ; do
487 patch_cmd="${BASH_ALIASES[patch]:-patch} -p${count} ${EPATCH_OPTS}" 490 patch_cmd="${patch} -p${count} ${EPATCH_OPTS}"
488 491
489 # Generate some useful debug info ... 492 # Generate some useful debug info ...
490 ( 493 (
491 _epatch_draw_line "***** ${patchname} *****" 494 _epatch_draw_line "***** ${patchname} *****"
492 echo 495 echo

Legend:
Removed from v.1.416  
changed lines
  Added in v.1.417

  ViewVC Help
Powered by ViewVC 1.1.20