diff options
author | George Miller <George@livio.io> | 2022-07-20 14:26:48 -0400 |
---|---|---|
committer | George Miller <George@livio.io> | 2022-07-20 14:26:48 -0400 |
commit | 90f1f244b6793b1d34fa17573f42c73dbab4beda (patch) | |
tree | ee1c7ac4e0f20e067afbb9780d15087ad3445ef7 /scripts | |
parent | 391ff44d5bd741bf0fdcd065aef95e2b51bf76bc (diff) | |
download | sdl_ios-90f1f244b6793b1d34fa17573f42c73dbab4beda.tar.gz |
cleanup. Add fetch
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/release.sh | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/scripts/release.sh b/scripts/release.sh index 462dc28a3..03954f860 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -37,25 +37,14 @@ if [[ $PWD != *"sdl_ios" ]]; then exit 0 fi -# TODO - We need to check the architecture and set a flag if it's M1 or later. -if [ $(uname -m) == "x86_64" ]; then - echo "proceed as normal" -else - echo "what a lovely M1 you have." - # use this for running scripts - # arch -x86_64 /bin/bash <script> - # and this for executables - # arch -x86_64 <executable> -fi -# TODO - based on architecture flags, the commands for things like Jazzy change - # Setup branch variables develop_branch="develop" main_branch="master" + + # Checkout develop - so we can update versions. # We need to checkout the branch before we start modifying files. - current_branch=$(git branch --show-current) if [ $current_branch == $develop_branch ]; then echo @@ -82,10 +71,14 @@ else git reset --hard fi fi - - echo "Checking out $develop_branch" + + # Do a fetch to make sure we are up to date. + git fetch -ff + + # Now do the checkout git checkout $develop_branch + # check if the checkout was successful current_branch=$(git branch --show-current) if [ $current_branch == $develop_branch ]; then develop_checked_out=1 @@ -214,7 +207,7 @@ if [ $current_branch == $develop_branch ]; then prompt_user "Would you like to walk through the git commands for this release" if [[ $? == 1 ]]; then - prompt_user "Would you like to commit and push these changes to the develop branch" + prompt_user "Would you like to commit and push the changes made so far to the develop branch" if [[ $? == 1 ]]; then # Add, commit, and push changes to develop git add -A |