| 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.25 2005/04/24 10:55:04 johnm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.26 2005/06/01 21:25:50 wolf31o2 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 |
| … | |
… | |
| 79 | qout() { |
79 | qout() { |
| 80 | local outputmsg type |
80 | local outputmsg type |
| 81 | type=${1} |
81 | type=${1} |
| 82 | shift |
82 | shift |
| 83 | outputmsg="${@}" |
83 | outputmsg="${@}" |
| 84 | case "${EBUILD_PHASE}" in |
84 | case "${EBUILD_PHASE}" in |
| 85 | depend) unset outputmsg;; |
85 | depend) unset outputmsg;; |
| 86 | clean) unset outputmsg;; |
86 | clean) unset outputmsg;; |
| 87 | preinst) unset outputmsg;; |
87 | preinst) unset outputmsg;; |
| 88 | esac |
88 | esac |
| 89 | [ -n "${outputmsg}" ] && ${type} "${outputmsg}" |
89 | [ -n "${outputmsg}" ] && ${type} "${outputmsg}" |
| 90 | } |
90 | } |
| 91 | |
91 | |
| 92 | qeinfo() { qout einfo "${@}" ; } |
92 | qeinfo() { qout einfo "${@}" ; } |
| 93 | qeerror() { qout eerror "${@}" ; } |
93 | qeerror() { qout eerror "${@}" ; } |
| 94 | |
94 | |