summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
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/^/<!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