update-core.sh 794 B

1234567891011121314151617181920212223
  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. commitmsg=`git log -1 --pretty=%s`
  13. cd ../../..
  14. # commit changes
  15. git add deltachat-ios/libraries/deltachat-core-rust
  16. git commit -m "update deltachat-core-rust submodule to '$commitmsg'"
  17. echo "changes are commited to local repo."
  18. echo "use 'git push' to use them or 'git reset HEAD~1; git submodule update --recursive' to abort on your own risk :)"