/[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.63 Revision 1.64
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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.63 2009/09/06 23:04:37 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.64 2009/09/06 23:12:29 robbat2 Exp $
4# 4#
5# Original author: John Mylchreest <johnm@gentoo.org> 5# Original author: John Mylchreest <johnm@gentoo.org>
6# Maintainer: kernel-misc@gentoo.org 6# Maintainer: kernel-misc@gentoo.org
7# 7#
8# Please direct your bugs to the current eclass maintainer :) 8# Please direct your bugs to the current eclass maintainer :)
200 ERROR=0 200 ERROR=0
201 mycat='cat' 201 mycat='cat'
202 202
203 [ -z "${1}" ] && ERROR=1 203 [ -z "${1}" ] && ERROR=1
204 [ ! -f "${2}" ] && ERROR=1 204 [ ! -f "${2}" ] && ERROR=1
205 [ "${2#.gz}" != "${2}" ] && mycat='zcat' 205 [ "${2%.gz}" != "${2}" ] && mycat='zcat'
206 206
207 if [ "${ERROR}" = 1 ] 207 if [ "${ERROR}" = 1 ]
208 then 208 then
209 echo -e "\n" 209 echo -e "\n"
210 eerror "getfilevar_noexec requires 2 variables, with the second a valid file." 210 eerror "getfilevar_noexec requires 2 variables, with the second a valid file."
623 # In the case where we don't require a .config, we can now bail out 623 # In the case where we don't require a .config, we can now bail out
624 # if the user has no .config as there is nothing to do. Otherwise 624 # if the user has no .config as there is nothing to do. Otherwise
625 # code later will cause a failure due to missing .config. 625 # code later will cause a failure due to missing .config.
626 if ! linux_config_exists; then 626 if ! linux_config_exists; then
627 ewarn "Unable to check for the following kernel config options due" 627 ewarn "Unable to check for the following kernel config options due"
628 ewarn "to absence of any configured kernel sources:" 628 ewarn "to absence of any configured kernel sources or compiled"
629 ewarn "config:"
629 for config in ${CONFIG_CHECK}; do 630 for config in ${CONFIG_CHECK}; do
630 ewarn " - ${config#\~}" 631 ewarn " - ${config#\~}"
631 done 632 done
632 ewarn "You're on your own to make sure they are set if needed." 633 ewarn "You're on your own to make sure they are set if needed."
633 return 0 634 return 0
634 fi 635 fi
635 else 636 else
636 require_configured_kernel 637 [ -n "${I_KNOW_WHAT_I_AM_DOING}" ] && require_configured_kernel
637 fi 638 fi
638 639
639 einfo "Checking for suitable kernel configuration options..." 640 einfo "Checking for suitable kernel configuration options..."
640 641
641 for config in ${CONFIG_CHECK} 642 for config in ${CONFIG_CHECK}

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

  ViewVC Help
Powered by ViewVC 1.1.20