aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Vohout <premek@vohnout.cz>2009-09-04 17:18:46 +0200
committerPřemysl Vohout <premek@vohnout.cz>2009-09-04 17:18:46 +0200
commitc62d09d30f60c11c99295f486e976ee7676abae4 (patch)
treec939d98efcf4eeafdc5aead925816f7d23611998 /sci-geosciences/josm/files/josm-r1
parentsci-mathematics/netgen: Changed to slotted togl-1.7, minor changes for openca... (diff)
downloadsci-c62d09d30f60c11c99295f486e976ee7676abae4.tar.gz
sci-c62d09d30f60c11c99295f486e976ee7676abae4.tar.bz2
sci-c62d09d30f60c11c99295f486e976ee7676abae4.zip
[sci-geosciencies/josm] New version
Diffstat (limited to 'sci-geosciences/josm/files/josm-r1')
-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 000000000..48c34d8bb
--- /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!\(.*://\)\?\(.*\):.*!\2!g'`
+ java -Dhttp.proxyHost=$proxy_host -Dhttp.proxyPort=$proxy_port -jar /usr/share/josm/lib/josm.jar
+fi