#!/bin/bash
# rebuild-gcj-db

: ${1?"
rebuild-gcj-db:  Re-build the gcj classmap .db

  Usage: $0 LIBDIR
    LIBDIR - the target library location
"}

dbLocation=`/usr/bin/gcj-dbtool-4.0 -p $1`
dirname $dbLocation | xargs mkdir -p
(cd $dbLocation.d; ls . | xargs /usr/bin/gcj-dbtool-4.0 \
  -m $dbLocation)
