releng r981 - trunk/tools
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: releng r981 - trunk/tools
- Date: Tue, 5 Aug 2008 15:18:37 +0000 (UTC)
Author: vuntz
Date: Tue Aug 5 15:18:37 2008
New Revision: 981
URL: http://svn.gnome.org/viewvc/releng?rev=981&view=rev
Log:
2008-08-05 Vincent Untz <vuntz gnome org>
* install-module: improve RSS output, by using CDATA, adding a guid tag
and a atom:link tag.
Patch by Patryk Zawadzki <patrys pld-linux org>
Modified:
trunk/tools/ChangeLog
trunk/tools/install-module
Modified: trunk/tools/install-module
==============================================================================
--- trunk/tools/install-module (original)
+++ trunk/tools/install-module Tue Aug 5 15:18:37 2008
@@ -252,12 +252,13 @@
# Regenerate the RSS file
# Print RSS Header
echo -n "<?xml version=\"1.0\"?>
-<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">
+<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:atom=\"http://www.w3.org/2005/Atom\">
<channel>
<title>GNOME FTP Releases</title>
<link>http://ftp.gnome.org/pub/GNOME/</link>
+ <atom:link href=\"http://ftp.gnome.org/pub/GNOME/LATEST.xml\" rel=\"self\" type=\"application/rss+xml\" />
<description>A list of recent files released on GNOME's FTP site</description>
- <webMaster>webmaster gnome org</webMaster>
+ <webMaster>webmaster gnome org (GNOME webmaster)</webMaster>
<lastBuildDate>$(date -R)</lastBuildDate>" > $LATEST.xml
@@ -283,32 +284,35 @@
<item>
<title>$LINE_MODULE $LINE_VERSION</title>
<link>$URLROOT/$LINE_TARBALL_LOC/</link>
- <description>"
+ <guid>$URLROOT/$LINE_TARBALL_LOC/$LINE_FILENAME.bz2</guid>
+ <description><![CDATA["
if [ -f $FTPROOT/$LINE_MODULE_LOC/$LINE_MODULE.png ]; then
- echo "<img src=\"$URLROOT/$LINE_MODULE_LOC/$LINE_MODULE.png\" align=\"right\" class=\"right\">"
+ echo "<img src=\"$URLROOT/$LINE_MODULE_LOC/$LINE_MODULE.png\" align=\"right\" class=\"right\">"
fi
if [ -f $FTPROOT/$LINE_TARBALL_LOC/$LINE_NEWSFILE ]; then
- echo "<tt>"
- sed 's/\&/\&/g;s/</\</g;s/>/\>/g;s/$/\<br\>/' $FTPROOT/$LINE_TARBALL_LOC/$LINE_NEWSFILE
- echo "</tt>"
- LINE_LINKS="$LINE_LINKS <a href=\"$URLROOT/$LINE_TARBALL_LOC/$LINE_NEWSFILE\">News</a>"
+ echo "<tt>"
+ # escape all HTML as we don't expect any formatting here
+ sed 's/\&/\&/g;s/</\</g;s/>/\>/g;s/$/<br/>/' $FTPROOT/$LINE_TARBALL_LOC/$LINE_NEWSFILE
+ echo "</tt>"
+ LINE_LINKS="$LINE_LINKS <a href=\"$URLROOT/$LINE_TARBALL_LOC/$LINE_NEWSFILE\">News</a>"
fi
if [ -f $FTPROOT/$LINE_TARBALL_LOC/$LINE_CHANGESFILE ]; then
if [ ! -f $FTPROOT/$LINE_TARBALL_LOC/$LINE_NEWSFILE ]; then
- echo "<tt>"
- sed 's/\&/\&/g;s/</\</g;s/>/\>/g;s/$/\<br\>/' $FTPROOT/$LINE_TARBALL_LOC/$LINE_CHANGESFILE
- echo "</tt>"
+ echo "<tt>"
+ # escape all HTML as we don't expect any formatting here
+ sed 's/\&/\&/g;s/</\</g;s/>/\>/g;s/$/<br/>/' $FTPROOT/$LINE_TARBALL_LOC/$LINE_CHANGESFILE
+ echo "</tt>"
fi
- LINE_LINKS="$LINE_LINKS <a href=\"$URLROOT/$LINE_TARBALL_LOC/$LINE_CHANGESFILE\">ChangeLog</a>"
+ LINE_LINKS="$LINE_LINKS <a href=\"$URLROOT/$LINE_TARBALL_LOC/$LINE_CHANGESFILE\">ChangeLog</a>"
fi
- LINE_LINKS="$LINE_LINKS <a href=\"$URLROOT/$LINE_TARBALL_LOC/$LINE_FILENAME.gz\">gzip</a> <a href=\"$URLROOT/$LINE_TARBALL_LOC/$LINE_FILENAME.bz2\">bzip2</a>"
+ LINE_LINKS="$LINE_LINKS <a href=\"$URLROOT/$LINE_TARBALL_LOC/$LINE_FILENAME.gz\">gzip</a> <a href=\"$URLROOT/$LINE_TARBALL_LOC/$LINE_FILENAME.bz2\">bzip2</a>"
- echo -n "<p>$(echo $LINE_LINKS | sed 's/\> \</\> \&middot; \</g')</p>
- </description>
+ echo -n "<p>$(echo $LINE_LINKS | sed 's/> </> \· </g')</p>;
+ ]]></description>
<pubDate>$LINE_DATE</pubDate>
</item>") >> $LATEST.xml
#<!-- FIXME <dc:creator>$LINE_WHO</dc:creator> -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]