mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-25 01:00:55 +01:00
ac57b10968
Change-Id: Iff217eea5b115f244bfa6e34faf35f430f638a7d
34 lines
841 B
Bash
Executable File
34 lines
841 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
mydir="$(dirname "$(realpath "$0")")"
|
|
source "$mydir/merge_helpers.sh"
|
|
|
|
# Require clean git state
|
|
require_clean_git
|
|
|
|
# Oposite of restore_sc in post_merge.sh
|
|
restore_upstream() {
|
|
local f="$(basename "$1")"
|
|
local path="$(dirname "$1")"
|
|
local sc_f="tmp_sc_$f"
|
|
local upstream_f="upstream_$f"
|
|
mv "$path/$f" "$path/$sc_f"
|
|
if [ -e "$path/$upstream_f" ]; then
|
|
mv "$path/$upstream_f" "$path/$f"
|
|
fi
|
|
}
|
|
|
|
# Revert Schildi's upstream string changes
|
|
git checkout `upstream_previous_tag` -- `find "$mydir/vector/src/main/res" -name strings.xml`
|
|
git commit -m "Automatic revert to unchanged upstream strings, pt.1"
|
|
|
|
# Keep in sync with post_merge.sh!
|
|
restore_upstream .github
|
|
restore_upstream fastlane
|
|
restore_upstream README.md
|
|
|
|
git add -A
|
|
git commit -m "[TMP] Automatic upstream merge preparation"
|