2020-09-08 18:53:10 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
mydir="$(dirname "$(realpath "$0")")"
|
|
|
|
source "$mydir/merge_helpers.sh"
|
|
|
|
|
|
|
|
# Require clean git state
|
|
|
|
require_clean_git
|
|
|
|
|
2020-11-29 12:52:07 +01:00
|
|
|
# Color corrections | TODO more?
|
2021-02-05 12:15:52 +01:00
|
|
|
sed -i 's|"@color/riotx_accent"|"?colorAccent"|g' vector/src/*/res/layout/*
|
|
|
|
sed -i 's|"@style/VectorButtonStyle"|"?materialButtonStyle"|g' vector/src/*/res/layout/*
|
2020-11-29 12:52:07 +01:00
|
|
|
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
|
2020-09-08 18:53:10 +02:00
|
|
|
|
|
|
|
# Keep in sync with pre_merge.sh!
|
|
|
|
restore_sc README.md
|
|
|
|
restore_sc fastlane
|
2020-11-25 09:29:16 +01:00
|
|
|
restore_sc .github
|
2020-09-08 18:53:10 +02:00
|
|
|
|
|
|
|
git add -A
|
|
|
|
git commit -m "Automatic upstream merge postprocessing"
|
|
|
|
|
2021-01-16 11:21:39 +01:00
|
|
|
"$mydir"/correct_strings.sh
|