File: Adjust-classpath-in-stilts-script.patch

package info (click to toggle)
starjava-ttools 3.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,924 kB
  • sloc: java: 170,407; xml: 19,581; javascript: 670; python: 641; sh: 107; makefile: 27
file content (25 lines) | stat: -rw-r--r-- 793 bytes parent folder | download
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
From: Ole Streicher <olebole@debian.org>
Date: Fri, 3 Mar 2017 09:28:38 +0100
Subject: Adjust classpath in stilts script

---
 src/script/stilts | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/script/stilts b/src/script/stilts
index 57a1b7a..444ef66 100644
--- a/src/script/stilts
+++ b/src/script/stilts
@@ -65,11 +65,7 @@ mac_bundled_java="$bindir/../jre.bundle/Contents/Home/bin/java"
 test -x "$mac_bundled_java" && java="$mac_bundled_java"
 
 #  Locate the application jar file.
-for j in $bindir_stilts_jars; do
-   if test -z "$appjar" -a -f "$bindir/$j"; then
-      appjar="$bindir/$j"
-   fi
-done
+appjar=/usr/share/java/starlink-ttools.jar
 if test ! -f "$appjar"
 then
    echo 1>&2 "Can't find stilts classes relative to ${scriptname} - looked for:"