summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4ae1009..8d9cda1 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,9 @@ stem = eut
source_baseurl = http://euwiki.org/
source_basename = Ensuring_utmost_transparency_--_Free_Software_and_Open_Standards_under_the_Rules_of_Procedure_of_the_European_Parliament
+# work around in mediawiki bug parsing blockquote tags on same line
+re_blockquote = s|\n*(</?blockquote>)\n*|\n$$1\n|g
+
all: $(stem).pdf
download:
@@ -13,7 +16,7 @@ $(stem).mediawiki: $(stem).raw
-e 'decode_entities($$_);' \
-e 's|.*?\n= |= |s;' \
-e 's|<!--.*-->||s;' \
- -e 's|\n*(</?blockquote>)\n*|\n$$1\n|g;' \
+ -e '$(re_blockquote);' \
< $< > $@
$(stem).pdf: $(stem).mediawiki template.tex