Robin Green writes:
The new rebuild-gcj-db will fail (I think) if the full list of .db
files cannot fit on one Linux command line.
Are you sure that it will fail? I'm quite happy to belive you if
you've really tried it, but I see nothing incorrect about the script.
Your patch is nore efficient, however, so it's probably worth doing
just because of that.
The following patch, which I just tested, fixes this:
--- rebuild-gcj-db.orig 2005-07-09 10:07:00.000000000 +0100
+++ rebuild-gcj-db 2005-07-09 10:07:19.000000000 +0100
@@ -17,4 +17,4 @@
dirname $dbLocation | xargs mkdir -p
/usr/bin/gcj-dbtool -n $dbLocation 64
find $dbLocation.d /usr/lib/gcj -name '*.db' -print0 | \
- xargs -0 /usr/bin/gcj-dbtool -m $dbLocation $dbLocation
+ /usr/bin/gcj-dbtool -0 -m $dbLocation $dbLocation
Should be just
+ /usr/bin/gcj-dbtool -0 -m $dbLocation
I think.
Andrew.