Strings are tedious to get right, so write a lint script that catches common errors to warn developers before they're uploaded. Test: builds, boots Bug: 76097999 Change-Id: I9826ca796c17cd93a100951d56214653de63a379
5 lines
228 B
Bash
Executable File
5 lines
228 B
Bash
Executable File
#!/bin/bash
|
|
git show --name-only --pretty=format: $1 | grep values/strings.xml | while read file; do
|
|
python $ANDROID_BUILD_TOP/frameworks/base/tools/stringslint/stringslint.py <(git show $1:$file) <(git show $1^:$file)
|
|
done
|