Skip to content

Commit

Permalink
[base] fetch testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
NobbZ committed Mar 30, 2016
1 parent 3609859 commit 99d9abf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ rebuild: clean all

run: $(LANGUAGES=%:build_%) $(LANGUAGES:%=run_%)

wiki: data/huwiki-latest-pages-meta-current.xml

wikisource: data/huwikisource-latest-pages-meta-current.xml



build_%:
Expand All @@ -28,3 +32,12 @@ run_%:
@echo running \"$*\"
@cat $(TESTDATA) | $(TIME) -f $(TIMEFORMAT) make -s -C $* run > /dev/null
@echo finished running \"$*\"

data/%.xml: data/%.xml.bz2
bunzip2 $<

data/huwikisource%.xml.bz2:
@wget http://dumps.wikimedia.org/huwikisource/latest/huwikisource$*.xml.bz2 -O $@

data/huwiki%.xml.bz2:
@wget http://dumps.wikimedia.org/huwiki/latest/huwiki$*.xml.bz2 -O $@

0 comments on commit 99d9abf

Please sign in to comment.