clone-release-repos.sh 726 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. # With this, clone all release related repos.
  3. # 1) Check that this script has no parameters
  4. if [ $# -ne 0 ]
  5. then
  6. echo "Syntax, no parameters:"
  7. echo " ./releases/clone-release-repos.sh"
  8. exit 1
  9. fi
  10. # 2) Create directories, clone repos
  11. mkdir ../w
  12. cd ../w
  13. git clone git@github.com:wekan/wekan.github.io.git
  14. git clone git@github.com:wekan/wekan-ondra.git
  15. git clone git@github.com:wekan/wekan-gantt-gpl.git
  16. # 3) Set upstreams
  17. cd wekan-ondra
  18. git remote add upstream https://github.com/wekan/wekan
  19. cd ../wekan-gantt-gpl
  20. git remote add upstream https://github.com/wekan/wekan
  21. # 4) Go back to Wekan repo directory
  22. cd ../wekan
  23. echo "Release repos ondra, gantt-gpl, and website cloned and upstreams set."