summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-04-04 17:16:49 +0000
committerTom Tromey <tromey@redhat.com>2006-04-04 17:16:49 +0000
commited164c586c30c74e98d41164c67a0f597e457c76 (patch)
tree2c8997f380c25c5633ccfbf14ecd499bee23fe0a /lib
parent0b8534d8e70ae0e87b1c09de27875d5ede9b89db (diff)
downloadclasspath-ed164c586c30c74e98d41164c67a0f597e457c76.tar.gz
* lib/gen-classlist.sh.in: Correct handle generated files.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/gen-classlist.sh.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/gen-classlist.sh.in b/lib/gen-classlist.sh.in
index 4e57ceb8e..5f7055ffd 100755
--- a/lib/gen-classlist.sh.in
+++ b/lib/gen-classlist.sh.in
@@ -58,8 +58,11 @@ done
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