From 7c51ef762bed4c344c15310241651947a3ea37fd Mon Sep 17 00:00:00 2001 From: astro Date: Sun, 13 Jan 2008 01:41:18 +0000 Subject: [PATCH] =?UTF-8?q?Datumsstempel=20in=20Makefile,=20damit=20f?= =?UTF-8?q?=C3=BCr=20Chaosupdates=20&=20Kalender=20mind.=201x=20t=C3=A4gli?= =?UTF-8?q?ch=20neugebaut=20wird?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@1059 31f61c52-7bfb-0310-b897-fc00f8a278f0 --- Makefile | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7b1683961..7d8e8be79 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,9 @@ WWW_CCC_DE_UPDATES=chaosupdates.rdf CALENDAR_SUMMARY=calendar-summary.xml ### Ziele ### +# Mindestens 1x täglich neubauen wegen Chaosupdates & Kalender +DATESTAMP=build/.stamp-$(shell date +%Y-%m-%d) + # Dateinamen der zu erzeugenden html-Dateien: CONTENT=$(PAGES) $(NEWS_PAGES) $(DS_PAGES) $(NEWSFILES) $(SEARCH_TMPL) build/calendar.html @@ -74,14 +77,20 @@ endef ### Defaults ### www: $(XML_CATALOG) $(CONTENT) - $(RSYNC) $(RSYNC_FLAGS) content/static/ content/old-site/ build/ $@ + $(RSYNC) $(RSYNC_FLAGS) --exclude=".stamp-*" content/static/ content/old-site/ build/ $@ export: www $(RSYNC) $(RSYNC_FLAGS) --exclude=".svn/" www/ $(DESTDIR)/ +$(DATESTAMP): + touch $@ + # Bad hack: + rm -f $(WWW_CCC_DE_UPDATES) + make $(WWW_CCC_DE_UPDATES) + ### Regeln für den XSLT-Prozess ### -build/news.html: $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) +build/news.html: $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) $(DATESTAMP) build/news-rss.xml : STYLE=xsl/rss.xsl build/news-rss.xml : NOVALID_IGNORE:=true build/news-rss.xml : VFLAGS_OUT=--noout --schema xsd/rss20.xsd @@ -108,7 +117,7 @@ $(CALENDAR_SUMMARY): content/events.xml news.xml $(call xml_process) build/calendar.html : VFLAGS_IN=--noout -build/calendar.html: $(CALENDAR_SUMMARY) $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) +build/calendar.html: $(CALENDAR_SUMMARY) $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(DATESTAMP) $(call xml_process) # XCal @@ -126,17 +135,17 @@ build/ical.ics: $(CALENDAR_SUMMARY) $(STYLE) $(call xml_process) # Pages: -build/%.html: content/pages/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) news.xml +build/%.html: content/pages/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) $(DATESTAMP) news.xml $(call xml_process) # News: build/news/%.html : BASEURL="../" -build/news/%.html: content/news/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) +build/news/%.html: content/news/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) $(DATESTAMP) $(call xml_process) # Suche: build/cgi-bin/search.html : BASEURL="../" -build/cgi-bin/search.html: content/cgi-bin/search.xml $(STYLE) $(NAVIGATION) +build/cgi-bin/search.html: content/cgi-bin/search.xml $(STYLE) $(NAVIGATION) $(DATESTAMP) $(call xml_process) # -- MNE-20060421: Lt. Astro geht Validierung noch nicht mit dem Fahrplan, @@ -150,6 +159,7 @@ content/datenspuren/schedule.xml: content/static/datenspuren/fahrplan/days.de.ht cp $< $@ ### Die neuesten Chaosupdates holen ### +# wird vom $(DATESTAMP) 1x täglich neu geholt $(WWW_CCC_DE_UPDATES): $(WGET) http://www.ccc.de/updates/$(WWW_CCC_DE_UPDATES) || \ cp chaosupdates-2006-01-02.rdf $@