push-core.sh 814 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. FLAG_OK="\033[32m[ OK ]\033[0m"
  3. FLAG_INFO="\033[32m[Info]\033[0m"
  4. FLAG_NOTE="\033[35m[Note]\033[0m"
  5. sh version.sh
  6. python3 format.py
  7. if [ -d "../../../pikalab" ]; then
  8. sh lab-push.sh
  9. fi
  10. cp package/pikascript/pikascript-core/* ../../src -r
  11. cp package/pikascript/PikaObj.pyi ../../src
  12. git add $(find test/python -name '*.py')
  13. git add $(find test -name '*.cpp')
  14. sh std_push.sh PikaStdLib
  15. sh std_push.sh PikaStdData
  16. sh std_push.sh PikaDebug
  17. sh std_push.sh PikaStdTask
  18. sh std_push.sh builtins
  19. echo "$FLAG_OK Push \033[32mpikascript-core\033[0m to ../../src successfully!"
  20. echo "$FLAG_OK Push \033[32mPikaSdLib\033[0m to ../../package/PikaStdLib successfully!"
  21. echo "$FLAG_NOTE Now, you can run 'git commit -a' to commit changes."
  22. echo "$FLAG_NOTE Then, you can run 'git push' to push to github/gitee."