summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-12-10 02:38:57 +0100
committerJonas Smedegaard <dr@jones.dk>2014-12-10 02:39:20 +0100
commiteb6e92a65e8d2a977277c429238171c0a9de3d0f (patch)
tree581a4548b3172428a98f6094bd9fcc326ff5a0a3
parent4c77b7e7b3514655390b0dc5c734d5e78e56d96c (diff)
Isolate and document regex.
-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