diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-07-28 12:59:46 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-07-28 12:59:46 +0000 |
commit | f771af59e211ad1133eb65d78e8f2f30f6211c20 (patch) | |
tree | 9138e6e8ffdfc1d14d5e75d24753fcf1d05386ac /eclass/eclipse-ext.eclass | |
parent | stable on alpha, ia64 and x86 (diff) | |
download | historical-f771af59e211ad1133eb65d78e8f2f30f6211c20.tar.gz historical-f771af59e211ad1133eb65d78e8f2f30f6211c20.tar.bz2 historical-f771af59e211ad1133eb65d78e8f2f30f6211c20.zip |
Updates from #49733.
Diffstat (limited to 'eclass/eclipse-ext.eclass')
-rw-r--r-- | eclass/eclipse-ext.eclass | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/eclass/eclipse-ext.eclass b/eclass/eclipse-ext.eclass index fcd42bdca37c..f248c3d54a4a 100644 --- a/eclass/eclipse-ext.eclass +++ b/eclass/eclipse-ext.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/eclipse-ext.eclass,v 1.5 2004/06/28 12:29:00 karltk Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eclipse-ext.eclass,v 1.6 2004/07/28 12:59:46 karltk Exp $ # Author: Karl Trygve Kalleberg <karltk@gentoo.org> # Maintainer: Karl Trygve Kalleberg <karltk@gentoo.org> @@ -83,8 +83,10 @@ function eclipse-ext_install-features { fi for x in $* ; do - if [ -f $x/feature.xml ] ; then + if [ -d "$x" ] && [ -f $x/feature.xml ] ; then cp -a $x ${D}/${eclipse_ext_basedir}/features + else + eerror "$x not a feature directory!" fi done } @@ -111,10 +113,10 @@ function eclipse-ext_install-plugins { fi for x in $* ; do - if [ -d "$x" ] && [ -f "$x/plugin.xml" ] ; then + if [ -d "$x" ] && ( [ -f "$x/plugin.xml" ] || [ -f "$x/fragment.xml" ] ) ; then cp -a $x ${D}/${eclipse_ext_basedir}/plugins else - eerror "$x not a a plugin directory!" + eerror "$x not a plugin directory!" fi done } |