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

Diff of /eclass/eutils.eclass

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

Revision 1.78 Revision 1.80
1# Copyright 1999-2004 Gentoo Technologies, Inc. 1# Copyright 1999-2004 Gentoo Technologies, Inc.
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.78 2004/02/09 17:08:44 brad_mssw Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.80 2004/02/21 07:48:12 vapier 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.
456 fi 456 fi
457 fi 457 fi
458} 458}
459 459
460# Cheap replacement for when debianutils (and thus mktemp) 460# Cheap replacement for when debianutils (and thus mktemp)
461# do not exist on the users system 461# does not exist on the users system
462# vapier@gentoo.org 462# vapier@gentoo.org
463# 463#
464# Takes just 1 parameter (the directory to create tmpfile in) 464# Takes just 1 parameter (the directory to create tmpfile in)
465mymktemp() { 465mymktemp() {
466 local topdir="$1" 466 local topdir="$1"
1100# remember, you can only go forward in the cd chain, you can't go back. 1100# remember, you can only go forward in the cd chain, you can't go back.
1101cdrom_load_next_cd() { 1101cdrom_load_next_cd() {
1102 export CDROM_CURRENT_CD=$((CDROM_CURRENT_CD + 1)) 1102 export CDROM_CURRENT_CD=$((CDROM_CURRENT_CD + 1))
1103 local var= 1103 local var=
1104 1104
1105 if [ ! -z "${CD_ROOT}" ] ; then
1106 einfo "Using same root as before for CD #${CDROM_CURRENT_CD}"
1107 return
1108 fi
1109
1105 unset CDROM_ROOT 1110 unset CDROM_ROOT
1106 var=CDROM_ROOTS_${CDROM_CURRENT_CD} 1111 var=CDROM_ROOTS_${CDROM_CURRENT_CD}
1107 if [ -z "${!var}" ] ; then 1112 if [ -z "${!var}" ] ; then
1108 var="CDROM_CHECK_${CDROM_CURRENT_CD}" 1113 var="CDROM_CHECK_${CDROM_CURRENT_CD}"
1109 cdrom_locate_file_on_cd ${!var} 1114 cdrom_locate_file_on_cd ${!var}

Legend:
Removed from v.1.78  
changed lines
  Added in v.1.80

  ViewVC Help
Powered by ViewVC 1.1.20