2020-09-08 19:14:39 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-09-08 19:53:10 +03:00
|
|
|
mydir="$(dirname "$(realpath "$0")")"
|
|
|
|
source "$mydir/merge_helpers.sh"
|
2020-09-08 19:14:39 +03:00
|
|
|
|
2020-09-08 19:53:10 +03:00
|
|
|
# Require clean git state
|
|
|
|
require_clean_git
|
2020-09-08 19:14:39 +03:00
|
|
|
|
2022-11-18 17:12:38 +03:00
|
|
|
# Tag this version for easier git diff-ing
|
|
|
|
versionMajor=`get_prop ext.versionMajor`
|
|
|
|
versionMinor=`get_prop ext.versionMinor`
|
|
|
|
versionPatch=`get_prop ext.versionPatch`
|
|
|
|
tag="sc_last_v$versionMajor.$versionMinor.$versionPatch"
|
2023-05-25 12:50:25 +03:00
|
|
|
git tag "$tag" || true
|
2022-11-18 17:12:38 +03:00
|
|
|
|
2020-12-12 16:14:04 +03:00
|
|
|
# Revert Schildi's upstream string changes
|
2022-09-10 16:35:39 +03:00
|
|
|
git checkout `upstream_common_base` -- "$mydir/library/ui-strings/src/main/res/**/strings.xml"
|
2020-12-12 16:14:04 +03:00
|
|
|
git commit -m "Automatic revert to unchanged upstream strings, pt.1"
|
2020-09-08 19:14:39 +03:00
|
|
|
|
2020-09-08 19:53:10 +03:00
|
|
|
# Keep in sync with post_merge.sh!
|
2020-11-25 11:29:16 +03:00
|
|
|
restore_upstream .github
|
2020-09-08 19:14:39 +03:00
|
|
|
restore_upstream fastlane
|
|
|
|
restore_upstream README.md
|
2020-09-08 19:53:10 +03:00
|
|
|
|
2020-09-08 19:14:39 +03:00
|
|
|
git add -A
|
|
|
|
git commit -m "[TMP] Automatic upstream merge preparation"
|