summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2005-07-20 11:05:55 +0000
committerThomas Matthijs <axxo@gentoo.org>2005-07-20 11:05:55 +0000
commitd705f713a0a72ea903102ffed5021575fb266fab (patch)
tree29a92cb85a3b9ce07d2b6fe60c626d2766a15ee5 /eclass/java-pkg.eclass
parentStable on amd64. (diff)
downloadgentoo-2-d705f713a0a72ea903102ffed5021575fb266fab.tar.gz
gentoo-2-d705f713a0a72ea903102ffed5021575fb266fab.tar.bz2
gentoo-2-d705f713a0a72ea903102ffed5021575fb266fab.zip
die happy
Diffstat (limited to 'eclass/java-pkg.eclass')
-rw-r--r--eclass/java-pkg.eclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/eclass/java-pkg.eclass b/eclass/java-pkg.eclass
index 1b63ca797257..971bfbf075cb 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.26 2005/07/11 15:08:06 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.27 2005/07/20 11:05:55 axxo Exp $
pkglistpath="${T}/java-pkg-list"
@@ -276,23 +276,23 @@ java-pkg_jar-from()
destjar=${jar}
fi
- for x in `java-config --classpath=${pkg} | tr ':' ' '`; do
+ for x in $(java-config --classpath=${pkg} | tr ':' ' '); do
if [ ! -f ${x} ] ; then
- eerror "Installation problems with jars in ${pkg} - is it installed?"
+ die "Installation problems with jars in ${pkg} - is it installed?"
return 1
fi
_record-jar ${pkg} ${x}
if [ -z "${jar}" ] ; then
ln -sf ${x} $(basename ${x})
- elif [ "`basename ${x}`" == "${jar}" ] ; then
+ elif [ "$(basename ${x})" == "${jar}" ] ; then
ln -sf ${x} ${destjar}
return 0
fi
done
if [ -z "${jar}" ] ; then
- return 0
+ return 0
else
- return 1
+ die "failed too find ${destjar}"
fi
}