0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 03:52:15 +02:00

Made it easier to find broken strings variables

This commit is contained in:
Nicolas Raoul 2011-05-19 17:45:17 +09:00
parent 2dfd413c7e
commit 981195adb5

View File

@ -3,6 +3,10 @@
# Hopefully it will prevent this kind of bugs: https://code.google.com/p/ankidroid/issues/detail?id=359
cd ../res
grep -R "%1$ s" values*
grep -R "%1$ d" values*
grep -R '%' values* |
sed -e 's/%/\n%/g' | # Split lines that contain several expressions
grep '%' | # Filter out lines that do not contain expressions
@ -11,5 +15,5 @@ grep -R '%' values* |
grep -v '% ' | # Same, at the beginning of the string
grep -v '%s' | # Single string variable
grep -v '%d' | # Single decimal variable
grep -v '%[0-9]$s' | # Multiple string variable
grep -v '%[0-9]$d' # Multiple decimal variable
grep -v '%[0-9][0-9]\?$s' | # Multiple string variable
grep -v '%[0-9][0-9]\?$d' # Multiple decimal variable