post_merge.sh: Add some automatic accent color correction
Change-Id: Ie0cf3b2d89fa8b24ac7544cba2f1540be041674b
This commit is contained in:
parent
0b4f56d7a0
commit
6f0a1acaf7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue