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] - Rev 858

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

#! @SHELL@
# @configure_input@

top_srcdir=@top_srcdir@
vmdirs=`echo "@vm_classes@" | sed 's%:% %g'`
destMetaDir=`pwd`/META-INF
destResDir=`pwd`

for p in ${vmdirs}; do
        if test -d $p/META-INF; then
                (cd $p/META-INF; 
                 dirs=`find . -name "CVS" -prune -o -type d -print`;
                 for u in ${dirs}; do
                         @mkdir_p@ ${destMetaDir}/${u};
                 done;
                 files=`find . -name "CVS" -prune -o -name "*.in" -prune -o -type f -print`;
                 for u in ${files}; do
                         cp ${u} ${destMetaDir}/${u};
                 done
                 );
        fi;

        (cd ${p};
          resfiles=`find . -name "*.properties"`
          resdirs=
          for i in ${resfiles}; do 
                  a=`basename ${i}`; 
                  b=`echo ${i} | sed "s%${a}%%g"`; 
                  resdirs="${resdirs} ${b}";
          done;
          resnewdirs=`echo ${resdirs} | uniq`;

          for u in ${resnewdirs}; do
                  @mkdir_p@ ${destResDir}/${u};
          done
  
          for f in ${resfiles}; do
                echo ${f} ${destResDir}/${f};
          done
          )
done

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

powered by: WebSVN 2.1.0

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