mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 05:59:05 +03:00
8c5a8b9a2f
Change-Id: Ifcfcbdfefe24aa24c9e1c32ca7674feee1c4db80
49 lines
1.1 KiB
Bash
Executable file
49 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
mydir="$(dirname "$(realpath "$0")")"
|
|
source "$mydir/merge_helpers.sh"
|
|
|
|
# Require clean git state
|
|
require_clean_git
|
|
|
|
# Oposite of restore_upstream in post_merge.sh
|
|
restore_sc() {
|
|
local f="$(basename "$1")"
|
|
local path="$(dirname "$1")"
|
|
local sc_f="tmp_sc_$f"
|
|
local upstream_f="upstream_$f"
|
|
if [ -e "$path/$f" ]; then
|
|
mv "$path/$f" "$path/$upstream_f"
|
|
fi
|
|
if [ -e "$path/$sc_f" ]; then
|
|
mv "$path/$sc_f" "$path/$f"
|
|
fi
|
|
}
|
|
|
|
|
|
# Keep in sync with pre_merge.sh!
|
|
restore_sc README.md
|
|
restore_sc fastlane
|
|
restore_sc .github
|
|
|
|
git add -A
|
|
git commit -m "Automatic upstream merge postprocessing"
|
|
|
|
|
|
"$mydir"/correct_strings.sh
|
|
|
|
revert_last 'Revert "Resolve required manual intervention in german strings"'
|
|
|
|
while grep -q "wolpertinger\|schlumpfwesen" "$mydir/vector/src/main/res/values-de/strings.xml"; do
|
|
read -p "Please resolve remaining language, then press enter!"
|
|
done
|
|
|
|
uncommitted=`git status --porcelain`
|
|
if [ -z "$uncommitted" ]; then
|
|
echo "Seems like no new language conflicts appeared :)"
|
|
else
|
|
git add -A
|
|
git commit -m 'Resolve required manual intervention in german strings'
|
|
fi
|