diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2005-05-18 11:19:33 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2005-05-18 11:19:33 +0000 |
commit | b686ef86a24f7021d1710e88b671fa43a42a347d (patch) | |
tree | 5969f0db1e1893bb63f9b06ef69b59b85e54cfed /eclass | |
parent | Stable on ppc64 (diff) | |
download | gentoo-2-b686ef86a24f7021d1710e88b671fa43a42a347d.tar.gz gentoo-2-b686ef86a24f7021d1710e88b671fa43a42a347d.tar.bz2 gentoo-2-b686ef86a24f7021d1710e88b671fa43a42a347d.zip |
add java-pkg_newjar
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/java-pkg.eclass | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/eclass/java-pkg.eclass b/eclass/java-pkg.eclass index 39196fd77980..c594b4d77941 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.22 2005/03/16 16:50:37 luckyduck Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.23 2005/05/18 11:19:33 axxo Exp $ ECLASS=java-pkg INHERITED="${INHERITED} ${ECLASS}" @@ -122,7 +122,6 @@ java-pkg_doso() java-pkg_do_write_ } - java-pkg_dojar() { debug-print-function ${FUNCNAME} $* @@ -196,6 +195,17 @@ java-pkg_dojar() java-pkg_do_write_ } +java-pkg_newjar() +{ + if [ -z "${T}" ] || [ -z "${2}" ] ; then + die "java-pkg_newjar: Nothing defined to do" + fi + + rm -rf "${T}/${2}" + cp "${1}" "${T}/${2}" + java-pkg_dojar "${T}/${2}" +} + java-pkg_dowar() { debug-print-function ${FUNCNAME} $* |