diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2004-09-09 12:38:25 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2004-09-09 12:38:25 +0000 |
commit | 14ffde5347853c8e147b434cc568159e096c37ce (patch) | |
tree | 12c790bb5201823870f665c426350cd309096f4c /eclass | |
parent | proper gnuconfig/uclibc lovin (Manifest recommit) (diff) | |
download | gentoo-2-14ffde5347853c8e147b434cc568159e096c37ce.tar.gz gentoo-2-14ffde5347853c8e147b434cc568159e096c37ce.tar.bz2 gentoo-2-14ffde5347853c8e147b434cc568159e096c37ce.zip |
java-pkg_do_write_: properly detect when variables are empty
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/java-pkg.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/java-pkg.eclass b/eclass/java-pkg.eclass index 0c362ef174a5..89d5deb1fea0 100644 --- a/eclass/java-pkg.eclass +++ b/eclass/java-pkg.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/java-pkg.eclass,v 1.11 2004/09/09 12:30:00 axxo Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.12 2004/09/09 12:38:25 axxo Exp $ inherit base ECLASS=java-pkg @@ -47,10 +47,10 @@ java-pkg_do_init_() { java-pkg_do_write_() { # Create package.env echo "DESCRIPTION=${DESCRIPTION}" > "${package_env}" - if [ -n ${cp_pkg} ]; then + if [ -n "${cp_pkg}" ]; then echo "CLASSPATH=${cp_prepend}:${cp_pkg}:${cp_append}" >> "${package_env}" fi - if [ -n ${lp_pkg} ]; then + if [ -n "${lp_pkg}" ]; then echo "LIBRARY_PATH=${lp_prepend}:${lp_pkg}:${lp_append}" >> "${package_env}" fi } |