7
rebuild-gcj-db: re-build the gcj classmap database
9
usage: $0 [install|remove]
28
for dir; do [ -d $dir ] && dirs="$dirs $dir"; done
29
if [ -z "$dirs" ]; then
30
# no more dirs with .db files on the system
33
mkdir -p $(dirname $dbLocation)
34
if $dbtool -n $dbLocation.tmp 64; then
36
#case "$uname" in parisc*)
37
# echo >&2 "$dbtool succeeded unexpectedly"
42
echo >&2 "ERROR: $dbtool did fail; known problem on $uname"
48
find $dirs -follow -name '*.db' -print0 | \
49
xargs -r -0 $dbtool -m $dbLocation.tmp $dbLocation.tmp || exit 1
50
mv $dbLocation.tmp $dbLocation
58
dbLocation=`$dbtool -p || true`
60
if [ -n "$dbLocation" ]; then
61
case "$uname" in m68k)
62
echo >&2 "$dbtool succeeded unexpectedly"
67
echo >&2 "ERROR: $dbtool did fail; known problem on $uname"
74
if [ "$mode" = remove ] && [ ! -f "$dbLocation" ]; then
75
# libgcj7-0 or libgcj8 are already removed; no need
82
/usr/share/gcj/classmap.d \
83
/usr/share/gcj-$v/classmap.d
86
# still different databases for each gcj-4.x
88
if which gcj-dbtool-4.6 >/dev/null 2>&1; then
92
if which gcj-dbtool-4.5 >/dev/null 2>&1; then
96
if which gcj-dbtool-4.4 >/dev/null 2>&1; then