r301 - scripts/trunk

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Wed Jun 15 19:54:17 PDT 2005


Author: jhuntwork
Date: 2005-06-15 20:54:17 -0600 (Wed, 15 Jun 2005)
New Revision: 301

Modified:
   scripts/trunk/update-website.mk
Log:
Keep news.html from continually appending to itself

Modified: scripts/trunk/update-website.mk
===================================================================
--- scripts/trunk/update-website.mk	2005-06-16 02:50:43 UTC (rev 300)
+++ scripts/trunk/update-website.mk	2005-06-16 02:54:17 UTC (rev 301)
@@ -64,9 +64,11 @@
 	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 \
+	svn revert -q $$lcname/news.html && \
 	echo "<h2>$$name Changelog</h2>" >> $$lcname/news.html && \
 	cat $$i >> $$lcname/news.html && \
 	echo "<!--#include virtual=\"/common/footer.html\" -->" >> $$lcname/news.html ; else \
+	svn revert -q news.html && \
 	echo "<h2>$$name Changelog</h2>" >> news.html && \
 	cat $$i >> news.html && \
 	echo "<!--#include virtual=\"common/footer.html\" -->" >> news.html ; fi ; done




More information about the website mailing list