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..c57dabdd9 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) $(PFLAGS) -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) $(PFLAGS) -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 diff --git a/content/portal-config.xml b/content/portal-config.xml new file mode 100644 index 000000000..b57722b0a --- /dev/null +++ b/content/portal-config.xml @@ -0,0 +1,6 @@ + + https://media.c3d2.de/u/lachmoewe/atom/ + https://media.c3d2.de/u/bigalex/atom/ + https://media.c3d2.de/u/joerg/atom/ + https://wiki.c3d2.de/w/index.php?title=Spezial:Letzte_%C3%84nderungen&feed=atom&days=60&limit=30 + \ No newline at end of file diff --git a/xsl/portal2fetch.xsl b/xsl/portal2fetch.xsl new file mode 100644 index 000000000..3f52db991 --- /dev/null +++ b/xsl/portal2fetch.xsl @@ -0,0 +1,20 @@ + + + + + + + #!/bin/sh + + + + + wget -O portal- + + .xml ' + + ' + + + diff --git a/xsl/portal2items.xsl b/xsl/portal2items.xsl new file mode 100644 index 000000000..1396eed8b --- /dev/null +++ b/xsl/portal2items.xsl @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+ + + +
C3D2 Wiki
+
by
+ + [[]] + +
+
+ + + + + +
News
+
by
+ + + + +
+
+ + + + + + images/news/ + + + + + +