| 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.70 2009/01/09 06:59:45 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.71 2009/02/09 19:53:14 maekke 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 |
| … | |
… | |
| 337 | done |
337 | done |
| 338 | |
338 | |
| 339 | if is_final_abi; then |
339 | if is_final_abi; then |
| 340 | base=${T}/gentoo-multilib |
340 | base=${T}/gentoo-multilib |
| 341 | pushd "${base}" |
341 | pushd "${base}" |
| 342 | find . | tar -c -T - -f - | tar -x --no-same-owner -f - -C ${D} |
342 | find . | tar -c -T - -f - | tar -x --no-same-owner -f - -C "${D}" |
| 343 | popd |
343 | popd |
| 344 | |
344 | |
| 345 | # This 'set' stuff is required by mips profiles to properly pass |
345 | # This 'set' stuff is required by mips profiles to properly pass |
| 346 | # CDEFINE's (which have spaces) to sub-functions |
346 | # CDEFINE's (which have spaces) to sub-functions |
| 347 | set -- |
347 | set -- |
| … | |
… | |
| 481 | dodir ${dest} |
481 | dodir ${dest} |
| 482 | |
482 | |
| 483 | local basedir |
483 | local basedir |
| 484 | for basedir in ${basedirs}; do |
484 | for basedir in ${basedirs}; do |
| 485 | local dir |
485 | local dir |
| 486 | for dir in $(find ${D}/${basedir} -type d); do |
486 | for dir in $(find "${D}"/${basedir} -type d); do |
| 487 | dodir ${dest}/${dir/${D}\/${basedir}/} |
487 | dodir ${dest}/${dir/${D}\/${basedir}/} |
| 488 | done |
488 | done |
| 489 | done |
489 | done |
| 490 | } |
490 | } |
| 491 | |
491 | |