On Mon, 2005-04-04 at 21:36 -0400, Andrew Overholt wrote:
- Andrew Overholt overholt@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?
The -m option cases the destination database to be overwritten. If you want to maintain its contents you need to specify it as a source database. From "gcj-dbtool --help" output:
gcj-dbtool -m dest.gcjdb [source.gcjdb]... - Merge gcj map databases into dest Replaces dest To add to dest, include dest in the list of sources
But as I understand it, rebuild-gcj-db is supposed to rebuild classmap.db from scratch. If that's the intended behaviour (and is safe -- aph?) then
(cd $DB.d; ls . | xargs gcj-dbtool -m $DB)
is correct.
Tom