Browse Source

http://192.168.110.82/redmine/issues/1606

script check if build env is correct, if the code synced?, the woring tree clean? correct tagged?

Signed-off-by: Jason Zhou  <jason.zhou@starfivetech.com>
Jason Zhou 1 year ago
parent
commit
18d1764deb
1 changed files with 34 additions and 0 deletions
  1. 34 0
      pre-build.sh

+ 34 - 0
pre-build.sh

@@ -0,0 +1,34 @@
+#!/bin/bash
+##################################################################
+##                                                              ##
+##      SPDX-License-Identifier: GPL-2.0-or-later               ##
+##                                                              ##
+##	Copyright (C) 2018-2022   Starfive Technology           ##  
+##                                                              ##
+##	Author:	jason zhou  <jason.zhou@starfivetech.com>       ##
+##                                                              ##
+##################################################################
+
+COLOR_NORMAL="\033[0m"
+COLOR_GREEN="\033[1;32m"
+COLOR_YELLOW="\033[1;33m"
+COLOR_RED="\033[1;31m"
+COLOR_GREY="\033[1;30m"
+
+printf ${COLOR_GREEN}
+echo ""
+echo "prepare for release build, make sure repo synced, working tree was clean"
+echo "please checking if proper tagged for release!"
+echo ""
+printf ${COLOR_NORMAL}
+
+git submodule sync --recursive
+git pull
+git submodule foreach "git pull"
+git branch && git status
+git submodule foreach "git branch && git status"
+
+printf $COLOR_GREEN
+git tag | grep JH7110_51
+git submodule foreach "git tag | grep JH7110_51"
+printf $COLOR_NORMAL