sync_toolkits 533 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. #sync the tookit submodules to the same branch (maint/master)
  3. #this updates the submodules to match the top level project
  4. if [ -z "$1" ]; then
  5. BRANCH=$(git rev-parse --abbrev-ref HEAD)
  6. echo "Current branch: ${BRANCH}"
  7. else
  8. BRANCH=$1
  9. echo "Sync branch: ${BRANCH}"
  10. fi
  11. TOOLKITS="
  12. audio
  13. blocks
  14. comms
  15. flow
  16. plotters
  17. python
  18. soapy
  19. widgets
  20. "
  21. for TOOLKIT in ${TOOLKITS}; do
  22. echo "Syncing ${TOOLKIT}..."
  23. git -C ${TOOLKIT} checkout ${BRANCH}
  24. git -C ${TOOLKIT} pull origin ${BRANCH}
  25. done
  26. echo "Done!"