rename check_unique_key to check_unique_property and add check_required_property and property_stats

master
melvin 2013-11-29 10:28:08 +08:00
parent 80853618ab
commit b06a5ab7ce
1 changed files with 15 additions and 2 deletions

View File

@ -461,7 +461,8 @@ checks: \
check_requires_groovy_code \
check_script_name \
check_tokens \
check_unique_key \
check_unique_property \
check_required_property \
check_groovy_escape \
check_url \
check_image \
@ -525,9 +526,21 @@ check_decks:
<(grep "name=" -r release/Magarena/scripts/ | sed 's/.*name=//' | sort) \
<(cat release/Magarena/decks/*.dec | grep "^[0-9]" | sed 's/^[0-9]* //' | sort | uniq) | grep ">" | ${NO_OUTPUT}
check_unique_key:
check_unique_property:
grep "^[^=]*" -r release/Magarena/scripts/*.txt | sed 's/=.*//g' | sort | uniq -d | ${NO_OUTPUT}
property_stats:
grep "^[a-z]*=" -hr release/Magarena/scripts/*.txt -o | sort | uniq -c | sort -n
check_required_property:
grep image= -L release/Magarena/scripts/*.txt | ${NO_OUTPUT}
grep name= -L release/Magarena/scripts/*.txt | ${NO_OUTPUT}
grep type= -L release/Magarena/scripts/*.txt | ${NO_OUTPUT}
grep value= -L release/Magarena/scripts/*.txt | ${NO_OUTPUT}
grep rarity= -L `grep token= -L release/Magarena/scripts/*.txt` | ${NO_OUTPUT}
grep timing= -L `grep token= -L release/Magarena/scripts/*.txt` | ${NO_OUTPUT}
grep url= -L `grep token= -L release/Magarena/scripts/*.txt` | ${NO_OUTPUT}
crash.txt: $(wildcard *.log)
for i in `grep "^Excep" -l $^`; do \
tail -n +`grep -n "random seed" $$i | tail -1 | cut -d':' -f1` $$i; \