add rule to download comp rules

master
melvinzhang 2015-01-19 09:11:33 +08:00
parent c5c3739079
commit e970cf97c1
1 changed files with 3 additions and 0 deletions

View File

@ -296,6 +296,9 @@ decks/update:
-seq `expr ${LAST} - 200` ${LAST} | parallel make decks/mtgtop8_{}.dec
find decks -size 0 -delete
ref/MagicCompRules_latest.txt:
wget `curl http://magic.wizards.com/en/gameinfo/gameplay/formats/comprehensiverules | grep -o "http://media.*\.txt"` -O $@
ref/rules.txt: $(lastword $(wildcard ref/MagicCompRules_*.txt))
fmt -s $^ > $@
flip -bu $@