build.sh 963 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. ###########
  3. # Creates a package of PyPDEVS: strips of most useless data and tars it all up
  4. ###########
  5. mkdir pypdevs
  6. cp notes.txt pypdevs/releasenotes.txt
  7. cp install_mpi4py.sh pypdevs/install_mpi4py.sh
  8. cd doc/sphinx
  9. rm -r _build/html
  10. make html
  11. ./rewrite_documentation.sh
  12. cd ../..
  13. cp -R doc/sphinx/_build/html/ pypdevs/doc
  14. cp -R src/ pypdevs/
  15. cp -R examples/ pypdevs/
  16. rm test/output/*
  17. cp -R test/ pypdevs/
  18. cp LICENSE pypdevs/
  19. cp NOTICE pypdevs/
  20. mkdir pypdevs/tests/output
  21. rm pypdevs/src/pypdevs/*.pyc
  22. rm pypdevs/examples/*/*.pyc
  23. rm pypdevs/examples/*/*.pyo
  24. rm pypdevs/src/pypdevs/*.pyo
  25. rm pypdevs/src/pypdevs/*/*.pyc
  26. rm pypdevs/src/pypdevs/*/*.pyo
  27. rm pypdevs/tests/tests/*.pyc
  28. rm pypdevs/tests/tests/*.pyo
  29. rm pypdevs/tests/expected/normal_long
  30. rm pypdevs/tests/expected/checkpoint
  31. rm pypdevs/*.pyc
  32. rm pypdevs/*.pyo
  33. rm -R pypdevs/src/build
  34. rm -R pypdevs/src/__pycache__
  35. rm -R pypdevs/src/pypdevs/__pycache__
  36. tar -czf pypdevs.tgz pypdevs
  37. rm -R pypdevs