| 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-mod.eclass,v 1.12 2004/12/18 16:22:13 johnm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.13 2004/12/28 20:05:45 johnm Exp $ |
| 4 | |
4 | |
| 5 | # Description: This eclass is used to interface with linux-info in such a way |
5 | # Description: This eclass is used to interface with linux-info in such a way |
| 6 | # to provide the functionality required and initial functions |
6 | # to provide the functionality required and initial functions |
| 7 | # required to install external modules against a kernel source |
7 | # required to install external modules against a kernel source |
| 8 | # tree. |
8 | # tree. |
| … | |
… | |
| 154 | |
154 | |
| 155 | # and being working on things. |
155 | # and being working on things. |
| 156 | ebegin "Preparing file for modules.d" |
156 | ebegin "Preparing file for modules.d" |
| 157 | echo "# modules.d config file for ${selectedmodule}" >> ${module_config} |
157 | echo "# modules.d config file for ${selectedmodule}" >> ${module_config} |
| 158 | echo "# this file was automatically generated from linux-mod.eclass" >> ${module_config} |
158 | echo "# this file was automatically generated from linux-mod.eclass" >> ${module_config} |
| 159 | echo "# on behalf of ${EBUILD/*\//}" >> ${module_config} |
|
|
| 160 | for temp in ${module_docs} |
159 | for temp in ${module_docs} |
| 161 | do |
160 | do |
| 162 | echo "# Please read ${temp/*\//} for more info" >> ${module_config} |
161 | echo "# Please read ${temp/*\//} for more info" >> ${module_config} |
| 163 | done |
162 | done |
| 164 | |
163 | |
| 165 | # like inserting any aliases |
|
|
| 166 | if [ ${module_aliases} > 0 ]; |
164 | if [ ${module_aliases} > 0 ]; |
| 167 | then |
165 | then |
|
|
166 | echo >> ${module_config} |
| 168 | echo "# Internal Aliases - Do not edit" >> ${module_config} |
167 | echo "# Internal Aliases - Do not edit" >> ${module_config} |
| 169 | echo "# ------------------------------" >> ${module_config} |
168 | echo "# ------------------------------" >> ${module_config} |
| 170 | |
169 | |
| 171 | (( module_aliases-- )) |
170 | (( module_aliases-- )) |
| 172 | for temp in $(seq 0 ${module_aliases}) |
171 | for temp in $(seq 0 ${module_aliases}) |