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

Diff of /eclass/multilib.eclass

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

Revision 1.76 Revision 1.77
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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/multilib.eclass,v 1.76 2009/10/08 19:56:14 grobian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.77 2009/10/08 20:10:56 grobian Exp $
4 4
5# @ECLASS: multilib.eclass 5# @ECLASS: multilib.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# amd64@gentoo.org 7# amd64@gentoo.org
8# toolchain@gentoo.org 8# toolchain@gentoo.org
475# Helper function for create_ml_includes 475# Helper function for create_ml_includes
476create_ml_includes-makedestdirs() { 476create_ml_includes-makedestdirs() {
477 local dest=$1 477 local dest=$1
478 shift 478 shift
479 local basedirs=$@ 479 local basedirs=$@
480 [[ -z ${ED} ]] && local ED=${D}
480 481
481 dodir ${dest} 482 dodir ${dest}
482 483
483 local basedir 484 local basedir
484 for basedir in ${basedirs}; do 485 for basedir in ${basedirs}; do
485 local dir 486 local dir
486 for dir in $(find "${D}"/${basedir} -type d); do 487 for dir in $(find "${ED}"/${basedir} -type d); do
487 dodir ${dest}/${dir/${D}\/${basedir}/} 488 dodir ${dest}/${dir/${ED}\/${basedir}/}
488 done 489 done
489 done 490 done
490} 491}
491 492
492# Helper function for create_ml_includes 493# Helper function for create_ml_includes
493create_ml_includes-allfiles() { 494create_ml_includes-allfiles() {
495 [[ -z ${ED} ]] && local ED=${D}
494 local basedir file 496 local basedir file
495 for basedir in "$@" ; do 497 for basedir in "$@" ; do
496 for file in $(find "${D}"/${basedir} -type f); do 498 for file in $(find "${ED}"/${basedir} -type f); do
497 echo ${file/${D}\/${basedir}\//} 499 echo ${file/${ED}\/${basedir}\//}
498 done 500 done
499 done | sort | uniq 501 done | sort | uniq
500} 502}
501 503
502# Helper function for create_ml_includes 504# Helper function for create_ml_includes

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77

  ViewVC Help
Powered by ViewVC 1.1.20