mirror of
https://github.com/SchildiChat/schildichat-desktop.git
synced 2025-03-31 21:24:27 +02:00
Add helper scripts
This commit is contained in:
parent
bfb1270131
commit
50d8b024b6
20
bump_release_version.sh
Executable file
20
bump_release_version.sh
Executable 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
20
bump_test_version.sh
Executable 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
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
SCHILDI_ROOT="$(dirname "$(realpath "$0")")"
|
SCHILDI_ROOT="$(dirname "$(realpath "$0")")"
|
||||||
|
|
||||||
|
branch=${BRANCH:-"sc"}
|
||||||
|
|
||||||
i18n_helper_path="$SCHILDI_ROOT/i18n-helper/index.js"
|
i18n_helper_path="$SCHILDI_ROOT/i18n-helper/index.js"
|
||||||
i18n_path="src/i18n/strings"
|
i18n_path="src/i18n/strings"
|
||||||
i18n_overlay_path="$SCHILDI_ROOT/i18n-overlays"
|
i18n_overlay_path="$SCHILDI_ROOT/i18n-overlays"
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
mydir="$(dirname "$(realpath "$0")")"
|
mydir="$(dirname "$(realpath "$0")")"
|
||||||
branch=${BRANCH:-"sc"}
|
|
||||||
|
|
||||||
pushd "$mydir" > /dev/null
|
pushd "$mydir" > /dev/null
|
||||||
|
|
||||||
|
31
publish_release.sh
Executable file
31
publish_release.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user