summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2005-05-18 11:19:33 +0000
committerThomas Matthijs <axxo@gentoo.org>2005-05-18 11:19:33 +0000
commit36fc92912efa3d927d2c33c6c802c1faa2e5dc78 (patch)
treedfccc8efe046d0d13c8d5434cdd7cf5243bc4a03 /eclass
parentAdded ~ppc keyword (diff)
downloadhistorical-36fc92912efa3d927d2c33c6c802c1faa2e5dc78.tar.gz
historical-36fc92912efa3d927d2c33c6c802c1faa2e5dc78.tar.bz2
historical-36fc92912efa3d927d2c33c6c802c1faa2e5dc78.zip
add java-pkg_newjar
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-pkg.eclass14
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} $*