Re: [fedora-java] db merging script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux