summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-01-26 12:14:38 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-01-26 12:14:38 +0000
commitf7c717272380a990ffeb8e043473c68f2dc6c817 (patch)
tree3e8b819cfe73b9044a9e2161df74f670c70b7f32 /eclass/kde.eclass
parentChange Makefile.am and not Makefile.in as we have to re-run autotools anyway. (diff)
downloadhistorical-f7c717272380a990ffeb8e043473c68f2dc6c817.tar.gz
historical-f7c717272380a990ffeb8e043473c68f2dc6c817.tar.bz2
historical-f7c717272380a990ffeb8e043473c68f2dc6c817.zip
Check that ${PREFIX} is non-empty before using it.
Diffstat (limited to 'eclass/kde.eclass')
-rw-r--r--eclass/kde.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass
index 6627c0ff19ce..4dc974a43d8e 100644
--- a/eclass/kde.eclass
+++ b/eclass/kde.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/kde.eclass,v 1.142 2006/01/24 14:21:05 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.143 2006/01/26 12:14:38 flameeyes Exp $
#
# Author Dan Armak <danarmak@gentoo.org>
#
@@ -144,7 +144,7 @@ kde_src_compile() {
# If we're in a kde-base ebuild, set the prefixed directories to
# override the ones set by econf.
- if [[ ${PREFIX} != "/usr" ]]; then
+ if [[ -n ${PREFIX} && ${PREFIX} != "/usr" ]]; then
myconf="${myconf} --prefix=${PREFIX}
--mandir=${PREFIX}/share/man
--infodir=${PREFIX}/share/info