core-init.sh 747 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. if [ ! -f Makefile.PL -a -f ../Makefile.PL ]; then
  3. chdir ..
  4. fi
  5. if [ ! -f Makefile.PL ]; then
  6. echo wrong basedir, missing Makefile.PL
  7. exit
  8. fi
  9. if [ ! -d t/CORE ]; then
  10. if [ ! -d .git ]; then
  11. echo git clone p5-coretests.git t/CORE
  12. git clone https://github.com/perl11/p5-coretests.git t/CORE
  13. else
  14. if [ ! -f .gitmodules ]; then
  15. echo git submodule add p5-coretests.git t/CORE
  16. git submodule add https://github.com/perl11/p5-coretests.git t/CORE
  17. fi
  18. git submodule init
  19. echo git submodule update --remote
  20. git submodule update --remote
  21. fi
  22. else
  23. git submodule init
  24. echo git submodule update --remote
  25. git submodule update --remote
  26. fi