Datumsstempel in Makefile, damit für Chaosupdates & Kalender mind. 1x täglich neugebaut wird
git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@1059 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
parent
d8d92bb8a7
commit
7c51ef762b
22
Makefile
22
Makefile
|
@ -43,6 +43,9 @@ WWW_CCC_DE_UPDATES=chaosupdates.rdf
|
||||||
CALENDAR_SUMMARY=calendar-summary.xml
|
CALENDAR_SUMMARY=calendar-summary.xml
|
||||||
|
|
||||||
### Ziele ###
|
### Ziele ###
|
||||||
|
# Mindestens 1x täglich neubauen wegen Chaosupdates & Kalender
|
||||||
|
DATESTAMP=build/.stamp-$(shell date +%Y-%m-%d)
|
||||||
|
|
||||||
# Dateinamen der zu erzeugenden html-Dateien:
|
# Dateinamen der zu erzeugenden html-Dateien:
|
||||||
CONTENT=$(PAGES) $(NEWS_PAGES) $(DS_PAGES) $(NEWSFILES) $(SEARCH_TMPL) build/calendar.html
|
CONTENT=$(PAGES) $(NEWS_PAGES) $(DS_PAGES) $(NEWSFILES) $(SEARCH_TMPL) build/calendar.html
|
||||||
|
|
||||||
|
@ -74,14 +77,20 @@ endef
|
||||||
### Defaults ###
|
### Defaults ###
|
||||||
|
|
||||||
www: $(XML_CATALOG) $(CONTENT)
|
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
|
export: www
|
||||||
$(RSYNC) $(RSYNC_FLAGS) --exclude=".svn/" www/ $(DESTDIR)/
|
$(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 ###
|
### 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 : STYLE=xsl/rss.xsl
|
||||||
build/news-rss.xml : NOVALID_IGNORE:=true
|
build/news-rss.xml : NOVALID_IGNORE:=true
|
||||||
build/news-rss.xml : VFLAGS_OUT=--noout --schema xsd/rss20.xsd
|
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)
|
$(call xml_process)
|
||||||
|
|
||||||
build/calendar.html : VFLAGS_IN=--noout
|
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)
|
$(call xml_process)
|
||||||
|
|
||||||
# XCal
|
# XCal
|
||||||
|
@ -126,17 +135,17 @@ build/ical.ics: $(CALENDAR_SUMMARY) $(STYLE)
|
||||||
$(call xml_process)
|
$(call xml_process)
|
||||||
|
|
||||||
# Pages:
|
# 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)
|
$(call xml_process)
|
||||||
|
|
||||||
# News:
|
# News:
|
||||||
build/news/%.html : BASEURL="../"
|
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)
|
$(call xml_process)
|
||||||
|
|
||||||
# Suche:
|
# Suche:
|
||||||
build/cgi-bin/search.html : BASEURL="../"
|
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)
|
$(call xml_process)
|
||||||
|
|
||||||
# -- MNE-20060421: Lt. Astro geht Validierung noch nicht mit dem Fahrplan,
|
# -- 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 $< $@
|
cp $< $@
|
||||||
|
|
||||||
### Die neuesten Chaosupdates holen ###
|
### Die neuesten Chaosupdates holen ###
|
||||||
|
# wird vom $(DATESTAMP) 1x täglich neu geholt
|
||||||
$(WWW_CCC_DE_UPDATES):
|
$(WWW_CCC_DE_UPDATES):
|
||||||
$(WGET) http://www.ccc.de/updates/$(WWW_CCC_DE_UPDATES) || \
|
$(WGET) http://www.ccc.de/updates/$(WWW_CCC_DE_UPDATES) || \
|
||||||
cp chaosupdates-2006-01-02.rdf $@
|
cp chaosupdates-2006-01-02.rdf $@
|
||||||
|
|
Loading…
Reference in New Issue