/[gentoo-x86]/eclass/linux-info.eclass
Gentoo

Diff of /eclass/linux-info.eclass

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

Revision 1.33 Revision 1.34
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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/linux-info.eclass,v 1.33 2005/12/30 18:22:44 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.34 2005/12/30 18:36:39 johnm Exp $
4# 4#
5# Description: This eclass is used as a central eclass for accessing kernel 5# Description: This eclass is used as a central eclass for accessing kernel
6# related information for sources already installed. 6# related information for sources already installed.
7# It is vital for linux-mod to function correctly, and is split 7# It is vital for linux-mod to function correctly, and is split
8# out so that any ebuild behaviour "templates" are abstracted out 8# out so that any ebuild behaviour "templates" are abstracted out
107 then 107 then
108 echo -e "\n" 108 echo -e "\n"
109 eerror "getfilevar requires 2 variables, with the second a valid file." 109 eerror "getfilevar requires 2 variables, with the second a valid file."
110 eerror " getfilevar <VARIABLE> <CONFIGFILE>" 110 eerror " getfilevar <VARIABLE> <CONFIGFILE>"
111 else 111 else
112 workingdir=${PWD} 112 workingdir="${PWD}"
113 basefname=$(basename ${2}) 113 basefname="$(basename ${2})"
114 basedname=$(dirname ${2}) 114 basedname="$(dirname ${2})"
115 unset ARCH 115 unset ARCH
116 116
117 cd ${basedname} 117 cd "${basedname}"
118 echo -e "include ${basefname}\ne:\n\t@echo \$(${1})" | \ 118 echo -e "include ${basefname}\ne:\n\t@echo \$(${1})" | \
119 make ${BUILD_FIXES} -s -f - e 2>/dev/null 119 make ${BUILD_FIXES} -s -f - e 2>/dev/null
120 cd ${workingdir} 120 cd "${workingdir}"
121 121
122 ARCH=${myARCH} 122 ARCH=${myARCH}
123 fi 123 fi
124} 124}
125 125

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.20