summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-08-01 17:44:14 +0000
committerZac Medico <zmedico@gentoo.org>2006-08-01 17:44:14 +0000
commit659589ec71dc60ef67a07d2db3bb2c1337f8cb44 (patch)
treeafba92955dc276e0291975e7bc32f3a255b99c7c /bin
parenta44140ca77aa238e6c752333546c82b623e1c517 (diff)
downloadportage-659589ec71dc60ef67a07d2db3bb2c1337f8cb44.tar.gz
portage-659589ec71dc60ef67a07d2db3bb2c1337f8cb44.tar.bz2
portage-659589ec71dc60ef67a07d2db3bb2c1337f8cb44.zip
Remove dojar for bug #108517.
svn path=/main/trunk/; revision=4081
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dojar54
1 files changed, 0 insertions, 54 deletions
diff --git a/bin/dojar b/bin/dojar
deleted file mode 100755
index e1631cc4d..000000000
--- a/bin/dojar
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-# Author Karl Trygve Kalleberg <karltk@gentoo.org>
-
-#
-# Typical usage:
-# dojar foo.jar bar.jar
-# - installs foo.jar and bar.jar into /usr/share/${PN}/lib, and adds them
-# both to /usr/share/${PN}/classpath.env
-#
-# Detailed usage
-# dojar <list-of-jars>
-# - installs <list-of-jars> into /usr/share/${PN}/lib and adds each to
-# /usr/share/${PN}/classpath.env.
-#
-# The classpath.env file is currently merely a convenience for the user as
-# it allows him to:
-# export CLASSPATH=${CLASSPATH}:`cat /usr/share/foo/classpath.env`
-#
-# For many packages that set FOO_HOME, placing the jar files into
-# lib will allow the user to set FOO_HOME=/usr/share/foo and have the
-# scripts work as expected.
-#
-# Possibly a jarinto will be needed in the future.
-#
-
-if [ -z "$JARDESTTREE" ] ; then
- JARDESTTREE="lib"
-fi
-
-jarroot="${DESTTREE}/share/${PN}/"
-jardest="${DESTTREE}/share/${PN}/${JARDESTTREE}/"
-pf="${D}${jarroot}/package.env"
-
-dodir "${jardest}"
-
-for i in $* ; do
- bn="$(basename $i)"
-
- if [ -f "$pf" ] ; then
- oldcp=$(grep "CLASSPATH=" "$pf" | sed "s/CLASSPATH=//")
- grep -v "CLASSPATH=" "$pf" > "${pf}.new"
- echo "CLASSPATH=${oldcp}:${jardest}${bn}" >> "${pf}.new"
- mv "${pf}.new" "$pf"
- else
- echo "DESCRIPTION=\"${DESCRIPTION}\"" > "$pf"
- echo "CLASSPATH=${jardest}${bn}" >> "$pf"
- fi
-
- cp "$i" "${D}${jardest}/"
- chmod 0444 "${D}${jardest}/${bn}"
-done