r261 - scripts/trunk

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Tue Jun 14 09:20:31 PDT 2005


Author: jhuntwork
Date: 2005-06-14 10:20:31 -0600 (Tue, 14 Jun 2005)
New Revision: 261

Modified:
   scripts/trunk/update-website.mk
Log:
Making use of the logs, hopefully

Modified: scripts/trunk/update-website.mk
===================================================================
--- scripts/trunk/update-website.mk	2005-06-14 15:39:58 UTC (rev 260)
+++ scripts/trunk/update-website.mk	2005-06-14 16:20:31 UTC (rev 261)
@@ -60,6 +60,18 @@
 	$(SVNLOG) $(SVN)/$* 2>/dev/null | $(SVN2HTML) --with-branchname > logs/$*.html.tmp
 	cmp -s logs/$*.html.tmp logs/$*.html || cp logs/$*.html.tmp logs/$*.html
 	rm logs/$*.html.tmp
+	# The following is temporary until news items sorted out
+	for i in logs/* ; do name=`echo $$i | \
+	sed 's at logs/\(.*\).html@\1@'` && lcname=`echo $$name | tr '[A-Z]''[a-z]'` && \
+	if [ $$name != "www2" ] ; then \
+	echo "<!--#set var=\"pageTitle\" value=\"$$name News\" -->" > $$lcname/news.html && \
+	echo "<!--#include virtual="header.html" -->" >> $$lcname/news.html && \
+	echo "<!--#include virtual="menu.html" -->" >> $$lcname/news.html && \
+	echo "<div class=\"main\">" >> $$lcname/news.html && \
+	echo "<h1>$$name News</h1>" >> $$lcname/news.html && \
+	cat $$i >> $$lcname/news.html && \
+	echo "<!--#include virtual=\"/common/footer.html\" -->" >> $$lcname/news.html && \
+	chmod 755 $$lcname/news.html ; fi ; done
 
 svnlog2-%:
 	mkdir -p logs




More information about the website mailing list