mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 18:05:59 +03:00
c30a9b8a57
Easier to use manually Change-Id: Ieb87301e2b0b5d7e1299d3d0c8d49992d4cdde63
45 lines
1.1 KiB
Bash
Executable file
45 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
|
|
|
|
# Color corrections | TODO more?
|
|
sed -i 's|@color/riotx_accent|?colorAccent|g' vector/src/main/res/layout/*
|
|
uncommitted=`git status --porcelain`
|
|
if [ -z "$uncommitted" ]; then
|
|
echo "Seems like colors are still fine :)"
|
|
else
|
|
git add -A
|
|
git commit -m 'Automatic color correction'
|
|
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"
|
|
|
|
revert_last 'Automatic revert to unchanged upstream strings, pt.1' || \
|
|
read -p "Please resolve conflicts and commit, then press enter"
|
|
|
|
"$mydir"/correct_strings.sh
|
|
|
|
|
|
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
|