summaryrefslogtreecommitdiff
path: root/devel/javadeps/patches/patch-aa
blob: ba99434310d6619af5c516f3f4cb64d39c4b5109 (plain)
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
$NetBSD: patch-aa,v 1.2 2002/10/18 21:10:04 jlam Exp $

--- jdeps.orig	Sun May 17 00:49:57 1998
+++ jdeps
@@ -5,12 +5,15 @@
 # use *forward* slashes in the pathnames below (for jarFile and java) -- even
 # if you are using win95.
 
-# Change the value after the equals sign to the full path of the jar file.
-jarFile=jdeps.jar
+# The full path of the jar file.
+jarFile=@PREFIX@/share/jdeps/jdeps.jar
 
-# Change the value after the equals sign to the full pathname of your java
-# binary, if it is not on your PATH.
-java=java
+# Check if java is in the user's PATH.
+if type java 1>/dev/null 2>&1; then
+    java=java
+else
+    java=@JAVA_HOME@/bin/java
+fi
 
 # For win95, all kinds of weird things happen with make & bash if
 # the directory separator is *not* a double-backslash.