blob: 43aed8055b14313d2971155e3db5633593845769 (
plain)
- 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
- all: $(stem).pdf
- download:
- wget -o $(stem).raw '$(source_baseurl)index.php?title=$(source_basename)&action=edit'
- $(stem).mediawiki: $(stem).raw
- perl -0777 -MHTML::Entities -p \
- -e 's|.*<textarea[^>]*>||s; s|</textarea.*||s;' \
- -e 'decode_entities($$_);' \
- -e 's|.*?\n= |= |s;' \
- -e 's|<!--.*-->||s;' \
- -e 's|\n*(</?blockquote>)\n*|\n$$1\n|g;' \
- < $< > $@
- $(stem).pdf: $(stem).mediawiki template.tex
- pandoc -f mediawiki --template=template.tex --latex-engine=xelatex \
- --toc \
- -V title="Ensuring utmost transparency" \
- -V author="Carlo Piana" -V author="Ulf Öberg" \
- -V date="" \
- -o $@ $<
|