From 9e6e26977a1a6c3c00b1dcb1f4e24e86232a738a Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:36:18 +0000 Subject: Update windows scripts, add linux uninstall script git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@407 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat | 5 ++++- pdf-over-gui/src/main/resources/scripts/uninstall_linux.sh | 3 +++ pdf-over-gui/src/main/resources/scripts/uninstall_win.bat | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 pdf-over-gui/src/main/resources/scripts/uninstall_linux.sh (limited to 'pdf-over-gui/src/main/resources/scripts') diff --git a/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat b/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat index ae0cbbca..66d3c22e 100644 --- a/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat +++ b/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat @@ -1 +1,4 @@ -@start /b javaw -jar lib\pdf-over-gui-4.0.0-SNAPSHOT.jar %* \ No newline at end of file +@echo off +pushd %~dp0\.. +start /b javaw -jar lib\pdf-over-gui-4.0.0-SNAPSHOT.jar %* +popd \ No newline at end of file diff --git a/pdf-over-gui/src/main/resources/scripts/uninstall_linux.sh b/pdf-over-gui/src/main/resources/scripts/uninstall_linux.sh new file mode 100644 index 00000000..4f36b8e9 --- /dev/null +++ b/pdf-over-gui/src/main/resources/scripts/uninstall_linux.sh @@ -0,0 +1,3 @@ +#!/bin/sh +BASEDIR=`dirname $0` +(cd "$BASEDIR/.." && exec java -jar Uninstaller/uninstaller.jar) diff --git a/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat b/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat index f9da9ee1..4c01a10b 100644 --- a/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat +++ b/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat @@ -1 +1,4 @@ -@start /b Uninstaller\uninstaller.jar \ No newline at end of file +@echo off +pushd %~dp0\.. +start /b Uninstaller\uninstaller.jar +popd \ No newline at end of file -- cgit v1.2.3