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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [classpath/] [lib/] [copy-vmresources.sh.in] - Blame information for rev 818

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

Line No. Rev Author Line
1 781 jeremybenn
#! @SHELL@
2
# @configure_input@
3
 
4
top_srcdir=@top_srcdir@
5
vmdirs=`echo "@vm_classes@" | sed 's%:% %g'`
6
destMetaDir=`pwd`/META-INF
7
destResDir=`pwd`
8
 
9
for p in ${vmdirs}; do
10
        if test -d $p/META-INF; then
11
                (cd $p/META-INF;
12
                 dirs=`find . -name "CVS" -prune -o -type d -print`;
13
                 for u in ${dirs}; do
14
                         @mkdir_p@ ${destMetaDir}/${u};
15
                 done;
16
                 files=`find . -name "CVS" -prune -o -name "*.in" -prune -o -type f -print`;
17
                 for u in ${files}; do
18
                         cp ${u} ${destMetaDir}/${u};
19
                 done
20
                 );
21
        fi;
22
 
23
        (cd ${p};
24
          resfiles=`find . -name "*.properties"`
25
          resdirs=
26
          for i in ${resfiles}; do
27
                  a=`basename ${i}`;
28
                  b=`echo ${i} | sed "s%${a}%%g"`;
29
                  resdirs="${resdirs} ${b}";
30
          done;
31
          resnewdirs=`echo ${resdirs} | uniq`;
32
 
33
          for u in ${resnewdirs}; do
34
                  @mkdir_p@ ${destResDir}/${u};
35
          done
36
 
37
          for f in ${resfiles}; do
38
                echo ${f} ${destResDir}/${f};
39
          done
40
          )
41
done

powered by: WebSVN 2.1.0

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