mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 20:09:27 +03:00
ed2ed5bef4
- Buttons in debug options (debug build only) - Play button for video previews Change-Id: I3de5a41ae93d0293e3322dae03a7da4593baee95
30 lines
711 B
Bash
Executable file
30 lines
711 B
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/*/res/layout/*
|
|
sed -i 's|"@style/VectorButtonStyle"|"?materialButtonStyle"|g' vector/src/*/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"
|
|
|
|
"$mydir"/correct_strings.sh
|