git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1076 379699f6-c40d-0410-875b-85095c16579ebranch_1_1
parent
d2eaf84869
commit
6a189d2a66
@ -0,0 +1,15 @@ |
|||||||
|
#!/bin/sh |
||||||
|
JAVAC=@JAVAC@ |
||||||
|
JIKES=@JIKES@ |
||||||
|
PERL=@PERL@ |
||||||
|
|
||||||
|
abs_top_builddir=`cd $top_builddir; pwd` |
||||||
|
abs_top_srcdir=`cd $top_srcdir; pwd` |
||||||
|
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 $_' |
||||||
|
else |
||||||
|
$JAVAC $* |
||||||
|
fi |
Loading…
Reference in new issue