setup.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/bin/bash
  2. # DOWNLOAD AND SET ALL THE GIT REPOSITORIES WITH THE SOURCE CODE OF ENGINES
  3. git submodule update --init --recursive
  4. git submodule update --recursive
  5. # Set up Cadmium v1 repository
  6. cd simulators/cadmium || exit
  7. git checkout b6636f791d3fbff41b6b72e1d9e34ce18152065d
  8. # Set up Cadmium v2 repository
  9. cd ../cadmium_v2 || exit
  10. git checkout devel # TODO set to a specific commit when available
  11. # Newer version isn't available on github
  12. # Set up PythonPDEVS repository
  13. cd ../pythonpdevs || exit
  14. git checkout 50164a92c6
  15. # Set up xDEVS C repository
  16. cd ../xdevs.c || exit
  17. git checkout 9c2a54ddd671a790528f6ba4d5a71c2732a431dd
  18. # Set up xDEVS C++ repository
  19. cd ../xdevs.cpp || exit
  20. git checkout 4a5b9cf7b6498e88e760dfba177a761240999955
  21. # TODO xDEVS C#
  22. # TODO xDEVS Go
  23. # Set up xDEVS Java repository
  24. cd ../xdevs.java || exit
  25. git checkout 94b7d15ab3e79220e8145f9576e69948db4b4fb6
  26. # Set up xDEVS Python repository
  27. cd ../xdevs.py || exit
  28. git checkout b53a6f170350af8296af43d1b2334e173e95990c
  29. # Set up xDEVS Rust repository
  30. cd ../xdevs.rs || exit
  31. git checkout 7d4179e61e44f53bb67e2a32abdb3a1ca41752af
  32. # Set up xDEVS Rust (new) repository
  33. cd ../xdevs.rs-new || exit
  34. git checkout 64670afaeabfbf2bf1d34edd64cbc06bdfaad51d
  35. # Go back to root directory
  36. cd ../..
  37. # COMPILE THE DEVSTONE PROJECT FOR ALL THE PYTHON ENGINES
  38. # Install PythonPDEVS
  39. uv pip install ~/Desktop/pythonpdevs/src
  40. # Install xDEVS Python
  41. cd ./simulators/xdevs.py || exit
  42. uv pip install .