From 5d0f08beda7beefd50753f7ed81dc010b10a8239 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 24 Aug 2011 20:38:33 +0200 Subject: include news from buchhalterseite --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a33ee70..6084198 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,8 @@ v_gen_0 = @echo " GEN " $@; .PHONY: all all: $(pages_gen) checkmark.png +services$(suffix): buchhalterservice.xml + %.png: %.svg $(V_GEN) $(svg2png) $< > $@ @@ -31,5 +33,16 @@ all: $(pages_gen) checkmark.png %$(suffix): %.xml main.xml xsl/* $(V_XSLT) $(xsltproc) $< > $@ +.PHONY: buchhalterservice.xml +buchhalterservice.xml: + $(V_GEN) curl -s http://www.buchhalterseite.de/buchhalter-wissen/ShareBuchhalterseiteKurz.js | \ + sed -n "s/^\tvar buffer = '\(.*\)'\;/\1/p" | \ + xmllint --format - | \ + sed '2s/^/\n/' | \ + sed 's|||' | \ + sed 's|href=\([^"][^ >]*\)|href="\1"|' | \ + sed 's|<\!\[CDATA\[\(.*\)\]\]>|\1|' | \ + cat > $@ + clean: rm -f $(pages_gen) checkmark.png -- cgit