JavaDeps - Automatic Dependency Tracking for Java Tracking dependencies amongst a group of source files is always a chore. With Java it's even worse: source files may be mutually-dependent, and make doesn't deal with this situation at all! JavaDeps is a tool to generate dependency rules for Java sources, inspired by the "-MM" flag of gcc. This program analyzes a set of java source files, and outputs their dependencies, along with makefile rules to build the resulting classes. Provided in PR 14258 by Ben Wong (ben@wongs.net), munged around slightly by myself.
25 lines
824 B
Text
25 lines
824 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2001/10/17 12:32:17 agc 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=/usr/pkg/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 not, guess /usr/pkg/java/bin.
|
|
+if type java 1>/dev/null 2>&1; then
|
|
+ java=java
|
|
+else
|
|
+ java=/usr/pkg/java/bin/java
|
|
+fi
|
|
|
|
# For win95, all kinds of weird things happen with make & bash if
|
|
# the directory separator is *not* a double-backslash.
|