add commands to update card scripts

master
melvinzhang 2015-04-30 11:58:35 +08:00
parent a99248b6d7
commit 6fa77eeff3
1 changed files with 4 additions and 0 deletions

View File

@ -791,3 +791,7 @@ model_usage:
fix_indentation:
grep "^[ ]*" -r release/Magarena/scripts/*.groovy -o | awk -F':' 'length($$2) < 15 {print $$1 "\t" length($$2) % 4}' | grep -v 0 | cut -f1 | uniq | vim -
update_card_property:
ls -1 replace/* | parallel -q sed -i 's/\([^=]*\)=\(.*\)/s|\1=.*|\1=\2|/;s/\\/\\\\/g'
ls -1 release/Magarena/scripts/*.txt | parallel -q sed -i -f replace/{/} {}