summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2008-07-21 00:16:20 +0000
committerHanno Böck <hanno@gentoo.org>2008-07-21 00:16:20 +0000
commitd9252b53fb633ddceac462544f16467ea4480766 (patch)
tree8205f4aaf443e5582ce2f9cd594f8cc5ce0a2f92 /sci-geosciences/josm/files
parentp7zip bump (diff)
downloadgentoo-2-d9252b53fb633ddceac462544f16467ea4480766.tar.gz
gentoo-2-d9252b53fb633ddceac462544f16467ea4480766.tar.bz2
gentoo-2-d9252b53fb633ddceac462544f16467ea4480766.zip
josm version bump and use java eclass
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-git6 i686)
Diffstat (limited to 'sci-geosciences/josm/files')
-rwxr-xr-xsci-geosciences/josm/files/josm-r19
1 files changed, 9 insertions, 0 deletions
diff --git a/sci-geosciences/josm/files/josm-r1 b/sci-geosciences/josm/files/josm-r1
new file mode 100755
index 000000000000..8d9783e45639
--- /dev/null
+++ b/sci-geosciences/josm/files/josm-r1
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ -z "$http_proxy" ]; then
+ java -jar /usr/share/josm/lib/josm.jar
+else
+ proxy_port=`echo $http_proxy|sed -e 's/.*://g'`
+ proxy_host=`echo $http_proxy|sed -e 's!.*://\(.*\):.*!\1!g'`
+ java -Dhttp.proxyHost=$proxy_host -Dhttp.proxyPort=$proxy_port -jar /usr/share/josm/lib/josm.jar
+fi