mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
715eefe184
Change-Id: I09de3d8c78e69386fe6020e8d1aa0f4d1b7aa9b6
37 lines
1.1 KiB
Bash
Executable file
37 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
mydir="$(dirname "$(realpath "$0")")"
|
|
pushd "$mydir" > /dev/null
|
|
mydir=.
|
|
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/*/res/layout/* library/ui-styles/src/main/res/layout/*
|
|
sed -i 's|"@style/VectorButtonStyle"|"?materialButtonStyle"|g' vector/src/*/res/layout/* library/ui-styles/src/main/res/layout/*
|
|
sed -i 's|"@color/element_background_light"|"?backgroundColorLight"|g' vector/src/*/res/layout/* library/ui-styles/src/main/res/layout/*
|
|
sed -i 's|#FF4B55|#E53935|g' vector/src/*/res/drawable/* vector-app/src/*/res/drawable/*
|
|
sed -i 's|#ff4b55|#e53935|g' vector/src/*/res/drawable/* vector-app/src/*/res/drawable/*
|
|
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"
|
|
|
|
"$mydir"/correct_strings.sh
|
|
|
|
popd > /dev/null
|