Add helper scripts

This commit is contained in:
su-ex 2021-10-08 12:45:45 +02:00
parent bfb1270131
commit 50d8b024b6
No known key found for this signature in database
GPG Key ID: D743C50C8B61984C
5 changed files with 73 additions and 1 deletions

20
bump_release_version.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
set -e
mydir="$(dirname "$(realpath "$0")")"
pushd "$mydir" > /dev/null
source ./merge_helpers.sh
# Check branch
check_branch $branch
forall_repos check_branch $branch
# Ensure clean git state
forall_repos check_clean_git
bump_release_version
popd > /dev/null

20
bump_test_version.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
set -e
mydir="$(dirname "$(realpath "$0")")"
pushd "$mydir" > /dev/null
source ./merge_helpers.sh
# Check branch
check_branch $branch
forall_repos check_branch $branch
# Ensure clean git state
forall_repos check_clean_git
bump_test_version
popd > /dev/null

View File

@ -2,6 +2,8 @@
SCHILDI_ROOT="$(dirname "$(realpath "$0")")"
branch=${BRANCH:-"sc"}
i18n_helper_path="$SCHILDI_ROOT/i18n-helper/index.js"
i18n_path="src/i18n/strings"
i18n_overlay_path="$SCHILDI_ROOT/i18n-overlays"

View File

@ -3,7 +3,6 @@
set -e
mydir="$(dirname "$(realpath "$0")")"
branch=${BRANCH:-"sc"}
pushd "$mydir" > /dev/null

31
publish_release.sh Executable file
View File

@ -0,0 +1,31 @@
#!/bin/bash
set -e
mydir="$(dirname "$(realpath "$0")")"
pushd "$mydir" > /dev/null
source ./merge_helpers.sh
# Check branch
check_branch $branch
forall_repos check_branch $branch
# Ensure clean git state
forall_repos check_clean_git
git fetch origin
git branch -D master || true
git checkout -b master --track origin/master
git merge --ff-only sc
git push
git checkout sc
forall_repos git fetch origin
forall_repos git branch -D master || true
forall_repos git checkout -b master --track origin/master
forall_repos git merge --ff-only sc
forall_repos git push
forall_repos git checkout sc
popd > /dev/null