ATF-log archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

org.NetBSD.atf.htdocs.revamp: c6ff8671969432c9e6c03b0921a1bb098b4b17c1



#
#
# rename "generate-rss.xsl"
#     to "rss/generate.xsl"
# 
# rename "rss-news-src.xml"
#     to "rss/source.xml"
# 
# add_dir "rss"
# 
# add_file "rss/dot.htaccess"
#  content [9d2541927f33740ff9f24e7d9c59fea482336054]
# 
# patch "Makefile"
#  from [22f50f874f90b54ed3119975b95ef01f640db8a5]
#    to [17e4996cbd4eb86756b99e236d0bcb7a5b59b316]
# 
# patch "rss/generate.xsl"
#  from [f33ba51ffe9ad119403354152253b42a29037b6d]
#    to [ea4e481a52162b50105b3d1a02b7c99416181182]
# 
# patch "rss/source.xml"
#  from [803673f32a57be6a1cd850a3d5fdea179668d032]
#    to [c465e50659b0b1394c3f6678eccb22c54511ac79]
#
============================================================
--- rss/dot.htaccess    9d2541927f33740ff9f24e7d9c59fea482336054
+++ rss/dot.htaccess    9d2541927f33740ff9f24e7d9c59fea482336054
@@ -0,0 +1 @@
+DirectoryIndex rss.xml
============================================================
--- Makefile    22f50f874f90b54ed3119975b95ef01f640db8a5
+++ Makefile    17e4996cbd4eb86756b99e236d0bcb7a5b59b316
@@ -26,7 +26,7 @@ OBJS=         ${SRCS:.xml=.html}
 .SUFFIXES: .xml .html
 
 OBJS=          ${SRCS:.xml=.html}
-UPLOAD=                ${OBJS} ${CSSFILE} ${IMAGES} ${KEYS} rss-news.xml
+UPLOAD=                ${OBJS} ${CSSFILE} ${IMAGES} ${KEYS} rss/rss.xml
 
 .xml.html: ${XSLFILE} layout.xml revision.txt
        xsltproc --stringparam revision "$$(cat revision.txt)" \
@@ -39,10 +39,10 @@ UPLOAD=             ${OBJS} ${CSSFILE} ${IMAGES} ${
 
 .PHONY: build clean cleandir upload
 
-build: ${OBJS} rss-news.xml
+build: ${OBJS} rss/rss.xml
 
 clean:
-       rm -f ${OBJS} revision.txt rss-news.xml
+       rm -f ${OBJS} revision.txt rss/rss.xml
 
 cleandir: clean
        rm -f *~
@@ -52,8 +52,8 @@ upload: build
 
 #index.html news.html: dbs/news.xml
 
-rss-news.xml: rss-news-src.xml generate-rss.xsl dbs/news.xml
-       xsltproc generate-rss.xsl rss-news-src.xml >rss-news.xml
+rss/rss.xml: rss/source.xml rss/generate.xsl dbs/news.xml
+       xsltproc rss/generate.xsl rss/source.xml >rss/rss.xml
 
 revision.txt: Makefile _MTN/revision
        base=$$(mtn automate get_base_revision_id); \
============================================================
--- generate-rss.xsl    f33ba51ffe9ad119403354152253b42a29037b6d
+++ rss/generate.xsl    ea4e481a52162b50105b3d1a02b7c99416181182
@@ -10,7 +10,7 @@
     </xsl:copy>
   </xsl:template>
 
-  <xsl:template match="newslist">
+  <xsl:template match="root">
     <rss version="2.0">
       <channel>
         <title>Automated Testing Framework (ATF) News</title>
@@ -33,10 +33,14 @@
         <webMaster>jmmv AT NetBSD DOT org</webMaster>
       </channel>
 
-      <xsl:apply-templates select="newsitem" />
+      <xsl:apply-templates />
     </rss>
   </xsl:template>
 
+  <xsl:template match="news">
+    <xsl:apply-templates />
+  </xsl:template>
+
   <xsl:template match="newsitem">
     <item>
       <title><xsl:value-of select="title" /></title>
@@ -50,8 +54,8 @@
     </item>
   </xsl:template>
 
-  <xsl:template match="a">
-    <xsl:apply-templates />
+  <xsl:template match="ulink">
+    <a href="{@url}"><xsl:apply-templates mode="main" /></a>
   </xsl:template>
 
   <xsl:template match="para">
============================================================
--- rss-news-src.xml    803673f32a57be6a1cd850a3d5fdea179668d032
+++ rss/source.xml      c465e50659b0b1394c3f6678eccb22c54511ac79
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
-<!DOCTYPE webpage [<!ENTITY news SYSTEM "dbs/news.xml">]>
+<!DOCTYPE webpage [<!ENTITY news SYSTEM "../dbs/news.xml">]>
 
-<newslist>
+<root>
   &news;
-</newslist>
+</root>


Home | Main Index | Thread Index | Old Index