3 No need to use bash for this small script.
5 Also -print0 is not portable to solaris and perhaps others.
7 --- libjava/contrib/rebuild-gcj-db.in.orig 2008-07-02 13:17:54.000000000 +0000
8 +++ libjava/contrib/rebuild-gcj-db.in
14 ## Copyright (C) 2000, 2002, 2003, 2008 Free Software Foundation
15 @@ -16,12 +16,12 @@ for i in `@prefix@/bin/gcc --print-multi
16 base=@prefix@/lib/$dirname
17 dbLocation=`@prefix@/bin/gcj-dbtool -p $base`
19 - if ! test -d $libdir; then
20 + if test ! -d $libdir; then
21 # No shared libraries here.
24 dirname $dbLocation | xargs mkdir -p
25 @prefix@/bin/gcj-dbtool -n $dbLocation 64
26 - find $libdir -follow -name '*.db' -print0 | \
27 + find $libdir -follow -name '*.db' -print | @AWK@ '{printf("%s%c", $1, 0);}'|\
28 @prefix@/bin/gcj-dbtool -0 -m $dbLocation $dbLocation