Author: sanda
Date: Thu Apr 14 10:32:13 2016
New Revision: 41050
URL: http://www.lyx.org/trac/changeset/41050
Log:
* temporarily limit rss history to last two events.
Anyone generating RSS feeds: Please use 'make', do
not edit manually, it will create big diff when
automatic script is used and most probably confuse
RSS readers.
Modified:
www-user/trunk/misc/rss/lyx_rss_gen_data.sh
Modified: www-user/trunk/misc/rss/lyx_rss_gen_data.sh
==============================================================================
--- www-user/trunk/misc/rss/lyx_rss_gen_data.sh Thu Apr 14 10:28:05 2016
(r41049)
+++ www-user/trunk/misc/rss/lyx_rss_gen_data.sh Thu Apr 14 10:32:13 2016
(r41050)
@@ -13,7 +13,7 @@
EOF
echo -n ' '
-cat $NEWS |grep ^news_item|sed
's/.*\"\(.*\)\".*\"\(.*\)\".*\"\(.*\)\".*/RSSItem(title=\"\1\",link=\"http:\/\/www.lyx.org\/News\",description=\"\2\",guid=Guid(\"LyX
news feed \3\"),pubDate=\"\3\"),/'|grep -v news_item| sed
's:pubDate=\"\(...\).\(.*\),.\(....\)\":pubDate=\"\2 \1 \3 00\:00\:00
GMT\":'|head -n 12
+cat $NEWS |grep ^news_item|sed
's/.*\"\(.*\)\".*\"\(.*\)\".*\"\(.*\)\".*/RSSItem(title=\"\1\",link=\"http:\/\/www.lyx.org\/News\",description=\"\2\",guid=Guid(\"LyX
news feed \3\"),pubDate=\"\3\"),/'|grep -v news_item| sed
's:pubDate=\"\(...\).\(.*\),.\(....\)\":pubDate=\"\2 \1 \3 00\:00\:00
GMT\":'|head -n 2
echo ' ])'
echo 'rss.write_xml(open("lyx_news_feed.rss.tmp", "w"))'