[cp-patches] Patch: FYI: another build fixlet

Tom Tromey tromey at redhat.com
Tue Apr 4 17:09:50 UTC 2006


I'm checking this in.

This fixes another bug I found in gen-classlist.sh.  It was introduced
by my earlier patches.  The bug is that we aren't handling generated
files properly.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey at redhat.com>

	* lib/gen-classlist.sh.in: Correct handle generated files.

Index: lib/gen-classlist.sh.in
===================================================================
RCS file: /cvsroot/classpath/classpath/lib/gen-classlist.sh.in,v
retrieving revision 1.35
diff -u -r1.35 gen-classlist.sh.in
--- lib/gen-classlist.sh.in 3 Apr 2006 16:41:22 -0000 1.35
+++ lib/gen-classlist.sh.in 4 Apr 2006 17:16:00 -0000
@@ -58,8 +58,11 @@
 if test ! "${top_builddir}" -ef "@top_srcdir@"; then
   echo "Adding generated files in builddir '${top_builddir}'."
   # Currently the only generated files are in gnu.*.
-  @FIND@ ${top_builddir}/gnu -follow -name '*.java' -print \
-  | sort >> ${top_builddir}/lib/classes.1
+  (cd ${top_builddir}; @FIND@ gnu -follow -name '*.java' -print) |
+  sort | sed -e 's,/\([^/]*\)$, \1,' |
+  while read pkg file; do
+     echo $pkg $top_builddir $pkg/$file
+  done >> ${top_builddir}/lib/classes.1
 fi
 
 



More information about the Classpath-patches mailing list