mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-07 13:54:33 +00:00
42 lines
899 B
Bash
42 lines
899 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 -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
|