summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-01-07 16:38:38 +0100
committerJonas Smedegaard <dr@jones.dk>2015-01-07 16:38:38 +0100
commitc33904111ac3b886cd10ff1c3f1dbdcd7c277941 (patch)
tree27da9a79253e67a66befc52970938a70eb15a040 /Makefile
parent67296ef210458ce48be3942df98624dca66b8c53 (diff)
Fetch source by use of Mediawiki::API (not wget + custom mediawiki-extract decoding).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 29b20dd..774bd70 100644
--- a/Makefile
+++ b/Makefile
@@ -47,11 +47,10 @@ args_ebook = -V papersize=ebook -V fontsize=12pt -V classoption=oneside -V class
all: $(flavors:%=$(stem)-%.pdf)
download:
- wget -O $(stem).raw '$(source_baseurl)w/index.php?title=$(source_basename)&action=edit'
+ ./mediawiki-fetch $(source_baseurl) $(source_basename) $(stem).raw
$(stem).mw: $(stem).raw
- ./mediawiki-extract $< $@
- ./mediawiki-trim $@
+ ./mediawiki-trim $< $@
./mediawiki-blockquote $@
./mediawiki-uri-escape $@
./mediawiki-matter $@