summarylogtreecommitdiffstats
path: root/renew.sh
diff options
context:
space:
mode:
Diffstat (limited to 'renew.sh')
-rw-r--r--renew.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/renew.sh b/renew.sh
new file mode 100644
index 000000000000..1412ce99c12e
--- /dev/null
+++ b/renew.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+JAR=/usr/share/java/renew/loader.jar
+
+# default values
+[[ -z $NETPATH ]] && NETPATH=.
+[[ -z $CLASSPATH ]] && CLASSPATH=.
+
+# logs home
+if [[ $XDG_CACHE_HOME ]]; then
+ LOGS_HOME=$XDG_CACHE_HOME/renewlogs
+else
+ LOGS_HOME=~/.cache/renewlogs
+fi
+
+export CLASSPATH
+exec java \
+ -Xmx200M \
+ -Dde.renew.netPath="$NETPATH" \
+ -Dde.renew.classPath="$CLASSPATH" \
+ -Dlogs.home="$LOGS_HOME" \
+ -jar "$JAR" \
+ gui $@