summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mylchreest <johnm@gentoo.org>2005-03-28 09:27:31 +0000
committerJohn Mylchreest <johnm@gentoo.org>2005-03-28 09:27:31 +0000
commitdfe75ea8d98d9719ee93e1b94073a941131e6e9c (patch)
tree80a4c211d77e1a96ecb53211b1113bcf23224386 /eclass/linux-mod.eclass
parentUse proper toolchain compiler. (diff)
downloadgentoo-2-dfe75ea8d98d9719ee93e1b94073a941131e6e9c.tar.gz
gentoo-2-dfe75ea8d98d9719ee93e1b94073a941131e6e9c.tar.bz2
gentoo-2-dfe75ea8d98d9719ee93e1b94073a941131e6e9c.zip
Fixing small bug (#86650) with linux-mod/convert_to_m, thanks to Stefan Schweizer
Diffstat (limited to 'eclass/linux-mod.eclass')
-rw-r--r--eclass/linux-mod.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index f0a5cbbf7b0e..86c9004d6a5a 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.31 2005/03/11 23:11:05 kingtaco Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.32 2005/03/28 09:27:31 johnm Exp $
# Description: This eclass is used to interface with linux-info in such a way
# to provide the functionality required and initial functions
@@ -106,9 +106,10 @@ use_m() {
}
convert_to_m() {
- [ ! -f "${1}" ] && die "convert_to_m() requires a filename as an argument"
if use_m
then
+ [ ! -f "${1}" ] && \
+ die "convert_to_m() requires a filename as an argument"
ebegin "Converting ${1/${WORKDIR}\//} to use M= instead of SUBDIRS="
sed -i 's:SUBDIRS=:M=:g' ${1}
eend $?