post_merge.sh: Add some automatic accent color correction

Change-Id: Ie0cf3b2d89fa8b24ac7544cba2f1540be041674b
This commit is contained in:
SpiritCroc 2020-11-29 12:52:07 +01:00
parent 0b4f56d7a0
commit 6f0a1acaf7
1 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,15 @@ restore_sc() {
fi
}
# 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