From 8a713584de9b38ddd2683312bd5be025e7d30d3a Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 29 Oct 2013 02:42:40 +0100 Subject: [PATCH] start aggregating feeds for portal --- .gitignore | 1 + Makefile | 22 +++++++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c4452b338..6a45c5398 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ /chaosupdates.xml /chaosupdates.xml.orig /calendar-summary.xml +/portal-*.xml /content/datenspuren/schedule.xml /content/static/datenspuren/2008/fahrplan/track/V* /content/static/datenspuren/2007/fahrplan/track/V* diff --git a/Makefile b/Makefile index d18fa4f1e..7bc1aee49 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,8 @@ NEWSFILES:=build/news.html build/news-rss.xml build/news-atom.xml \ build/pentamusic-archiv.xml build/pentamedia-archiv.xml \ build/ical.ics build/xcal.xml build/reminders \ build/datenspuren/$(DS_YEAR)/news-rss.xml build/datenspuren/$(DS_YEAR)/news-atom.xml \ - build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml + build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml \ + build/portal.html PLAYLISTS:=$(patsubst content/news/pentaradio%.xml, build/news/pentaradio%.xspf, $(wildcard content/news/pentaradio*.xml)) \ $(patsubst content/news/pentaradio%.xml, build/news/pentaradio%.pls, $(wildcard content/news/pentaradio*.xml)) \ $(patsubst content/news/pentaradio%.xml, build/news/pentaradio%.m3u, $(wildcard content/news/pentaradio*.xml)) @@ -116,7 +117,6 @@ $(DATESTAMP): build/%.html : NOVALID:=true build/news.html: $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) $(DATESTAMP) - ## Feedgrößen begrenzen build/%.xml : MAX_ITEMS=23 build/%-archiv.xml build/news-archiv-%.xml : MAX_ITEMS=9999999 @@ -214,6 +214,22 @@ build/%.xspf : VFLAGS_OUT=$(VFLAGS) --relaxng xsd/xspf-1_0.5.rng build/%.m3u : NOVALID:=true build/%.pls : NOVALID:=true +# Portal +portal: + mkdir $@ + +portal/fetch.sh : STYLE=xsl/portal2fetch.xsl +portal/fetch.sh : NOVALID:=true +portal/fetch.sh: content/portal-config.xml $(STYLE) + $(PROCESSOR) -o $@ $(STYLE) $< + chmod a+x $@ + +portal/items.xml : STYLE=xsl/portal2items.xsl +portal/items.xml : NOVALID:=true +portal/items.xml: content/portal-config.xml $(STYLE) portal/fetch.sh news.xml + ( cd portal && ./fetch.sh ) + $(PROCESSOR) -o $@ $(STYLE) $< + # Pages: build/%.html: content/pages/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) $(DATESTAMP) news.xml $(call xml_process) @@ -274,4 +290,4 @@ $(WWW_CCC_DE_UPDATES): $(WWW_CCC_DE_UPDATES).orig .PHONY: clean clean: $(RM) $(CLEAN) news.xml - + $(RM) -r portal