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

Diff of /eclass/linux-mod.eclass

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

Revision 1.31 Revision 1.32
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.31 2005/03/11 23:11:05 kingtaco Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.32 2005/03/28 09:27:31 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.
104 [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -gt 5 -a ${KV_PATCH} -gt 5 ] && \ 104 [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -gt 5 -a ${KV_PATCH} -gt 5 ] && \
105 return 0 || return 1 105 return 0 || return 1
106} 106}
107 107
108convert_to_m() { 108convert_to_m() {
109 [ ! -f "${1}" ] && die "convert_to_m() requires a filename as an argument"
110 if use_m 109 if use_m
111 then 110 then
111 [ ! -f "${1}" ] && \
112 die "convert_to_m() requires a filename as an argument"
112 ebegin "Converting ${1/${WORKDIR}\//} to use M= instead of SUBDIRS=" 113 ebegin "Converting ${1/${WORKDIR}\//} to use M= instead of SUBDIRS="
113 sed -i 's:SUBDIRS=:M=:g' ${1} 114 sed -i 's:SUBDIRS=:M=:g' ${1}
114 eend $? 115 eend $?
115 fi 116 fi
116} 117}

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.20