diff --git a/jode/javacWithDeps.sh.in b/jode/javacWithDeps.sh.in index 5633e87..2792a77 100644 --- a/jode/javacWithDeps.sh.in +++ b/jode/javacWithDeps.sh.in @@ -9,7 +9,7 @@ if [ "$JAVAC" = "$JIKES" -a -n "$PERL" ]; then TEMPDEPS=`mktemp "deps.XXXXXX"` trap "rm $TEMPDEPS" EXIT $JAVAC +M=$TEMPDEPS $* - sort $TEMPDEPS | $PERL -ne 's"^(\Q'$top_srcdir'\E|\Q'$top_builddir'\E)"'$abs_top_builddir'"; s": (\Q'$top_srcdir'\E|\Q'$top_builddir'\E)": '$abs_top_srcdir'"; m"([^\.:]+)\.class: \Q'$abs_top_srcdir'\E[^\.]*.java$" or next; if ($1 ne $last) { $last = $1; open DEP, ">$1.u" }; print DEP $_' + sort $TEMPDEPS | $PERL -ne 's"^(\Q'$top_srcdir'\E|\Q'$top_builddir'\E)"'$abs_top_builddir'"; s": \Q'$top_srcdir'\E": '$abs_top_srcdir'"; s": \Q'$top_builddir'\E": '$abs_top_builddir'"; m"(\Q'$abs_top_builddir'\E[^\.:]+)\.class: [^\.]*.java$" or next; if ($1 ne $last) { $last = $1; open DEP, ">$1.u" }; print DEP $_' else $JAVAC $* fi