OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [contrib/] [rebuild-gcj-db.in] - Blame information for rev 848

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 754 jeremybenn
#!/bin/bash
2
# rebuild-gcj-db
3
 
4
## Copyright (C) 2000, 2002, 2003, 2008 Free Software Foundation
5
##
6
##   This file is part of libgcj.
7
##
8
## This software is copyrighted work licensed under the terms of the
9
## Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
10
## details.
11
 
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`
18
   libdir=$base/gcj
19
   if ! test -d $libdir; then
20
      # No shared libraries here.
21
      continue
22
   fi
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
27
done

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.