install_modules 1.4 KB

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. set -e
  3. # Branding
  4. rm -rf public/brand app/views/external
  5. git clone -b master git@github.com:sharelatex/brand-sharelatex public/brand
  6. git clone -b master git@github.com:sharelatex/external-pages-sharelatex app/views/external
  7. mv app/views/external/robots.txt public/robots.txt
  8. mv app/views/external/googlebdb0f8f7f4a17241.html public/googlebdb0f8f7f4a17241.html
  9. # Web Modules
  10. rm -rf modules
  11. BRANCH_NAME=${BRANCH_NAME:="$(git rev-parse --abbrev-ref HEAD)-nope"}
  12. function install_module {
  13. echo "Cloning $1 from $BRANCH_NAME branch"
  14. git clone -b $BRANCH_NAME $1 $2 || {
  15. echo "Cloning from $BRANCH_NAME failed - it likely doesn't exist. Using master";
  16. git clone -b master $1 $2;
  17. }
  18. }
  19. install_module git@github.com:sharelatex/web-sharelatex-modules modules
  20. install_module git@github.com:sharelatex/admin-panel modules/admin-panel
  21. install_module git@github.com:sharelatex/tpr-webmodule.git modules/tpr-webmodule
  22. install_module git@github.com:sharelatex/templates-webmodule.git modules/templates
  23. install_module git@github.com:sharelatex/track-changes-web-module.git modules/track-changes
  24. install_module git@github.com:sharelatex/overleaf-integration-web-module.git modules/overleaf-integration
  25. install_module git@github.com:sharelatex/overleaf-account-merge.git modules/overleaf-account-merge
  26. install_module git@github.com:sharelatex/references-search.git modules/references-search
  27. install_module git@github.com:sharelatex/learn-wiki-web-module.git modules/learn-wiki