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

Diff of /eclass/eutils.eclass

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

Revision 1.168 Revision 1.169
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.168 2005/04/29 03:59:15 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.169 2005/05/04 22:06:36 wolf31o2 Exp $
4# 4#
5# Author: Martin Schlemmer <azarah@gentoo.org> 5# Author: Martin Schlemmer <azarah@gentoo.org>
6# 6#
7# This eclass is for general purpose functions that most ebuilds 7# This eclass is for general purpose functions that most ebuilds
8# have to implement themselves. 8# have to implement themselves.
1471 local mline="" 1471 local mline=""
1472 local showedmsg=0 1472 local showedmsg=0
1473 1473
1474 for mline in $(mount | egrep -e '(iso|cdrom)' | awk '{print $3}') ; do 1474 for mline in $(mount | egrep -e '(iso|cdrom)' | awk '{print $3}') ; do
1475 [[ -d ${mline}/${dir} ]] || continue 1475 [[ -d ${mline}/${dir} ]] || continue
1476 [[ ! -z $(find ${mline}/${dir} -iname ${file} -maxdepth 1) ]] \ 1476 [[ ! -z $(find ${mline}/${dir} -maxdepth 1 -iname ${file}) ]] \
1477 && export CDROM_ROOT=${mline} 1477 && export CDROM_ROOT=${mline}
1478 done 1478 done
1479 1479
1480 if [[ -z ${CDROM_ROOT} ]] ; then 1480 if [[ -z ${CDROM_ROOT} ]] ; then
1481 echo 1481 echo

Legend:
Removed from v.1.168  
changed lines
  Added in v.1.169

  ViewVC Help
Powered by ViewVC 1.1.20