diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-08-24 20:38:33 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-08-24 20:50:00 +0200 |
commit | 5d0f08beda7beefd50753f7ed81dc010b10a8239 (patch) | |
tree | ce4f434d914f674d8c0ade982145ffa5e38aedcf /Makefile | |
parent | 77026810aed5eff07c3b8eeee7452235c27b85da (diff) | |
download | mutti-web-5d0f08beda7beefd50753f7ed81dc010b10a8239.tar.gz mutti-web-5d0f08beda7beefd50753f7ed81dc010b10a8239.tar.bz2 mutti-web-5d0f08beda7beefd50753f7ed81dc010b10a8239.zip |
include news from buchhalterseite
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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/^/<!DOCTYPE rss SYSTEM "character-entities.dtd">\n/' | \ + sed 's|<rss\(.*\)>|<rss\1 xmlns="http://purl.org/rss/2.0/">|' | \ + sed 's|href=\([^"][^ >]*\)|href="\1"|' | \ + sed 's|<description><\!\[CDATA\[\(.*\)\]\]></description>|<description>\1</description>|' | \ + cat > $@ + clean: rm -f $(pages_gen) checkmark.png |