r933 - html/trunk/scripts

lizardo at linuxfromscratch.org lizardo at linuxfromscratch.org
Mon Jan 10 18:41:17 PST 2005


Author: lizardo
Date: 2005-01-10 19:41:15 -0700 (Mon, 10 Jan 2005)
New Revision: 933

Modified:
   html/trunk/scripts/update-website.mk
Log:
Updated update-website.mk to handle HLFS content.


Modified: html/trunk/scripts/update-website.mk
===================================================================
--- html/trunk/scripts/update-website.mk	2005-01-11 02:27:59 UTC (rev 932)
+++ html/trunk/scripts/update-website.mk	2005-01-11 02:41:15 UTC (rev 933)
@@ -33,19 +33,21 @@
 
 # TODO This can be automated
 # Projects which have news to be archived
-PROJECTS = . lfs alfs blfs hints
+PROJECTS = . lfs alfs blfs hints hlfs
 # Years corresponding to the news-YYYY.txt files
-YEARS = 2003 2004
+YEARS = 2003 2004 2005
 # Current year
 YEAR = $(shell date +%Y)
 
-update-website: update-alfs update-blfs update-hints update-lfs update-patches update-www
+update-website: update-alfs update-blfs update-hints update-hlfs \
+	update-lfs update-patches update-www
 
 news-archive: $(foreach y,$(YEARS),$(foreach i,$(PROJECTS),news/$(i)/$(y)))
 
-news-html: alfs/news.html blfs/news.html hints/news.html lfs/news.html patches/news.html
+news-html: alfs/news.html blfs/news.html hints/news.html hlfs/news.html \
+	lfs/news.html patches/news.html
 
-news-rss: alfs/feed.rss blfs/feed.rss lfs/feed.rss
+news-rss: alfs/feed.rss blfs/feed.rss hlfs/feed.rss lfs/feed.rss
 
 backup:
 	tar -cPf /var/tmp/website-backup.tar $(TARGETDIR)
@@ -113,6 +115,13 @@
 	logs/hints.html \
 	$(TEMPLATES)/hints/news-bottom.html > hints/news.html
 
+hlfs/news.html: $(TEMPLATES)/hlfs/news-*.html news-$(YEAR).txt hlfs/news-$(YEAR).txt logs/HLFS.html
+	cat $(TEMPLATES)/hlfs/news-top.html > hlfs/news.html
+	$(MANAGE_NEWS) -i hlfs/news-$(YEAR).txt >> hlfs/news.html
+	$(MANAGE_NEWS) -i news-$(YEAR).txt >> hlfs/news.html
+	cat logs/HLFS.html \
+	$(TEMPLATES)/hlfs/news-bottom.html >> hlfs/news.html
+
 lfs/news.html: $(TEMPLATES)/lfs/news-*.html news-$(YEAR).txt lfs/news-$(YEAR).txt logs/LFS.html
 	cat $(TEMPLATES)/lfs/news-top.html > lfs/news.html
 	$(MANAGE_NEWS) -i lfs/news-$(YEAR).txt >> lfs/news.html
@@ -162,6 +171,8 @@
 update-hints: svnlog-hints hints/news.html fetch-hints hints-tarball \
 	hints-symlinks hints-list
 
+update-hlfs: svnlog-HLFS hlfs/news.html
+
 update-lfs: svnlog-LFS lfs/news.html
 
 update-patches: svnlog-patches patches/news.html




More information about the website mailing list