improve regex to extract deck ids
parent
f7f7d9e08a
commit
e1455d71e1
2
Makefile
2
Makefile
|
@ -275,7 +275,7 @@ decks/mtgtop8_%.dec:
|
|||
wget "http://www.mtgtop8.com/export_files/deck$*.mwDeck" -O $@
|
||||
|
||||
decks/update:
|
||||
$(eval LAST := $(shell curl http://mtgtop8.com/search | grep "d=[0-9]\+" -o | sort | tail -1 | sed 's/d=//'))
|
||||
$(eval LAST := $(shell curl http://mtgtop8.com/search | grep "&d=[0-9]\+" -o | sort | tail -1 | sed 's/&d=//'))
|
||||
-seq `expr ${LAST} - 200` ${LAST} | parallel make decks/mtgtop8_{}.dec
|
||||
find decks -size 0 -delete
|
||||
|
||||
|
|
Loading…
Reference in New Issue