4 ## Copyright (C) 2000, 2002, 2003, 2008 Free Software Foundation
6 ## This file is part of libgcj.
8 ## This software is copyrighted work licensed under the terms of the
9 ## Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
12 # Rebuild all the standard databases.
13 for i in `@prefix@/bin/gcc --print-multi-lib 2>/dev/null`; do
14 multilib=`echo $i | sed -e 's/^.*;//' | sed -e 's/\@/ -/g'`
15 dirname=`@prefix@/bin/gcc -print-multi-os-directory $multilib 2>/dev/null`
16 base=@prefix@/lib/$dirname
17 dbLocation=`@prefix@/bin/gcj-dbtool -p $base`
19 if ! test -d $libdir; then
20 # No shared libraries here.
23 dirname $dbLocation | xargs mkdir -p
24 @prefix@/bin/gcj-dbtool -n $dbLocation 64
25 find $libdir -follow -name '*.db' -print0 | \
26 @prefix@/bin/gcj-dbtool -0 -m $dbLocation $dbLocation