File: script-fix-classpath.patch

package info (click to toggle)
svnkit 1.8.14-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,716 kB
  • ctags: 27,506
  • sloc: java: 230,888; xml: 273; sh: 262; makefile: 36; python: 17; perl: 8
file content (36 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Markus Koschany <apo@debian.org>
Date: Sun, 9 Oct 2016 00:00:07 +0200
Subject: script fix classpath

Forwarded: not-needed
---
 svnkit-cli/src/main/scripts/jsvn | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/svnkit-cli/src/main/scripts/jsvn b/svnkit-cli/src/main/scripts/jsvn
index 56dbe40..f259dbe 100644
--- a/svnkit-cli/src/main/scripts/jsvn
+++ b/svnkit-cli/src/main/scripts/jsvn
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 BASEDIR="`dirname "\$0"`/.."
 BASEDIR=`(cd "\$BASEDIR"; pwd)`
 
@@ -49,14 +51,8 @@ if [ ! -x "\$JAVACMD" ] ; then
   exit 1
 fi
 
-if [ -z "\$SVNKIT_LIB" ]
-then
-  SVNKIT_LIB="\$BASEDIR"/lib
-fi
-
-<% project[classpath_property].eachWithIndex { elem, index -> %>CLASSPATH=<% if (index != 0) { %>\$CLASSPATH:<% } %>"\$SVNKIT_LIB/${elem}"
-<% } %>
-LOGGING_PROPERTIES_PATH="\$BASEDIR/conf/logging.properties"
+CLASSPATH="/usr/share/svnkit/svnkit-cli.jar"
+LOGGING_PROPERTIES_PATH="/etc/svnkit/logging.properties"
 
 # For Cygwin, switch paths to Windows format before running java
 if \$cygwin; then