On Tue, 2005-03-22 at 17:13 -0600, Phil Muldoon wrote:
I can't be sure but I think the merge automatically deletes the
destination "merge to" database, so there theoretically could be an
issue with the size of the argument list provided from the ls . to xargs
there. Not sure if this is something we should worry about in reality or
not
Oh, yes, you're right.
gcj-dbtool seems to create a temporary db and then copies it on top of
the real one once complete. Given that, I think this would work:
DB=`gcj-dbtool -p`
rm -f $DB
gcj-dbtool -n $DB
(cd $DB.d; ls . | xargs gcj-dbtool -m $DB $DB)
[note the extra $DB on that last line]
AG