pre-build.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. ##################################################################
  3. ## ##
  4. ## SPDX-License-Identifier: GPL-2.0-or-later ##
  5. ## ##
  6. ## Copyright (C) 2018-2022 Starfive Technology ##
  7. ## ##
  8. ## Author: jason zhou <jason.zhou@starfivetech.com> ##
  9. ## ##
  10. ##################################################################
  11. COLOR_NORMAL="\033[0m"
  12. COLOR_GREEN="\033[1;32m"
  13. COLOR_YELLOW="\033[1;33m"
  14. COLOR_RED="\033[1;31m"
  15. COLOR_GREY="\033[1;30m"
  16. printf ${COLOR_GREEN}
  17. echo ""
  18. echo "prepare for release build, make sure repo synced, working tree was clean"
  19. echo "please checking if proper tagged for release!"
  20. echo ""
  21. printf ${COLOR_NORMAL}
  22. git submodule sync --recursive
  23. git pull
  24. git submodule foreach "git pull"
  25. git branch && git status
  26. git submodule foreach "git branch && git status"
  27. printf $COLOR_GREEN
  28. git tag | grep JH7110_51
  29. git submodule foreach "git tag | grep JH7110_51"
  30. printf $COLOR_NORMAL