[fedora-java] db merging script
Andrew Haley
aph at redhat.com
Tue Apr 5 08:38:18 UTC 2005
Andrew Overholt writes:
> * Andrew Overholt <overholt at redhat.com> [2005-03-29 16:52]:
> [...]
> > > (cd $DB.d; ls . | xargs gcj-dbtool -m $DB $DB)
> [...]
>
> I'm thinking this should be:
>
> (cd $DB.d; ls . | xargs gcj-dbtool -m $DB)
>
> What's the purpose of the extraneous $DB? I don't think we want it because
> we actually want the entire db recreated every time. We don't want entries
> that are not in sub-dbs in $DB.d to be in the resultant db. Does that make
> sense?
Yes. The extra $DB is there because xargs will call gcj-dbtool
multiple times if it needs to. The right answer is not to use xargs.
Andrew.
More information about the java-devel
mailing list