blob: 4c4d0e1e83bceb73a3a02a3ea34cece17ad78e62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$NetBSD: patch-ag,v 1.1 2009/09/24 11:50:57 dmcmahill Exp $
No need to use bash for this small script.
Also -print0 is not portable to solaris and perhaps others.
--- libjava/contrib/rebuild-gcj-db.in.orig 2008-07-02 13:17:54.000000000 +0000
+++ libjava/contrib/rebuild-gcj-db.in 2009-09-23 12:53:18.000000000 +0000
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
# rebuild-gcj-db
@@ -17,5 +17,5 @@
dbLocation=`@prefix@/bin/gcj-dbtool -p $base`
libdir=$base/gcj
- if ! test -d $libdir; then
+ if test ! -d $libdir; then
# No shared libraries here.
continue
@@ -23,5 +23,5 @@
dirname $dbLocation | xargs mkdir -p
@prefix@/bin/gcj-dbtool -n $dbLocation 64
- find $libdir -follow -name '*.db' -print0 | \
+ find $libdir -follow -name '*.db' -print | @AWK@ '{printf("%s%c", $1, 0);}' | \
@prefix@/bin/gcj-dbtool -0 -m $dbLocation $dbLocation
done
|