diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-12-10 02:38:57 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-12-10 02:39:20 +0100 |
commit | eb6e92a65e8d2a977277c429238171c0a9de3d0f (patch) | |
tree | 581a4548b3172428a98f6094bd9fcc326ff5a0a3 /Makefile | |
parent | 4c77b7e7b3514655390b0dc5c734d5e78e56d96c (diff) |
Isolate and document regex.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |