update-core.sh 743 B

12345678910111213141516171819202122
  1. # this script updates the deltachat-core-rust sub-repository from github.
  2. # must be executed from the repo root.
  3. #
  4. # - make sure, the deltachat-ios directory is clean
  5. # - make sure, deltachat-core-rust is committed successfully before calling this script
  6. # check out submodules as present in the repository
  7. git submodule update --init --recursive
  8. # update submodule
  9. cd deltachat-ios/libraries/deltachat-core-rust
  10. git checkout master
  11. git pull
  12. cd ../../..
  13. # commit changes
  14. git add deltachat-ios/libraries/deltachat-core-rust
  15. git commit -m "update deltachat-core-rust submodule"
  16. echo "changes are commited to local repo."
  17. echo "use 'git push' to use them or 'git reset HEAD~1; git submodule update --recursive' to abort on your own risk :)"