gcc/libjava/classpath/lib/copy-vmresources.sh.in
Mark Wielaard 2127637945 Imported GNU Classpath 0.20
Imported GNU Classpath 0.20
       * Makefile.am (AM_CPPFLAGS): Add classpath/include.
       * java/nio/charset/spi/CharsetProvider.java: New override file.
       * java/security/Security.java: Likewise.
       * sources.am: Regenerated.
       * Makefile.in: Likewise.

From-SVN: r109831
2006-01-17 18:09:40 +00:00

42 lines
874 B
Bash

#! @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 -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