copy-vmresources.sh.in 899 B

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