add rule to remove trailing space at end of line

master
melvinzhang 2015-12-31 17:57:06 +08:00
parent d662a8dcc8
commit e3627b1840
1 changed files with 3 additions and 0 deletions

View File

@ -815,6 +815,9 @@ 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 -
fix_trailing_space:
find release/Magarena/scripts -type f -exec sed --in-place 's/[[:space:]]\+$$//' {} +
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/{/} {}