[FFmpeg-cvslog] [ffmpeg-web] branch master updated. aa59296 ffmpeg-web: rss support
gitolite
ffmpeg-cvslog at ffmpeg.org
Fri Dec 30 21:23:01 CET 2011
The branch, master has been updated
via aa59296cf73cfd8f97780e5bc00fe92164aeda24 (commit)
from 6da3283746dbd64bb0bb78d10079a865e4de537e (commit)
- Log -----------------------------------------------------------------
commit aa59296cf73cfd8f97780e5bc00fe92164aeda24
Author: Michael Niedermayer <michaelni at gmx.at>
AuthorDate: Fri Dec 30 06:12:43 2011 +0100
Commit: Michael Niedermayer <michaelni at gmx.at>
CommitDate: Fri Dec 30 21:17:20 2011 +0100
ffmpeg-web: rss support
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
diff --git a/Makefile b/Makefile
index 3db62aa..a86b034 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
SRCS = about bugreports consulting contact documentation download \
index legal projects shame
-TARGETS = $(addsuffix .html,$(addprefix htdocs/,$(SRCS)))
+TARGETS = $(addsuffix .html,$(addprefix htdocs/,$(SRCS))) htdocs/main.rss
PAGE_DEPS = src/template_head1 src/template_head2 src/template_footer sed_commands
@@ -18,4 +18,23 @@ htdocs/%.html: src/% src/%_title $(PAGE_DEPS)
cat src/template_head1 $<_title src/template_head2 - \
src/template_footer > $@
+htdocs/main.rss: htdocs/index.html
+ echo '<?xml version="1.0" encoding="UTF-8" ?>' > $@
+ echo '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">' >> $@
+ echo '<channel>' >> $@
+ echo ' <title>FFmpeg RSS</title>' >> $@
+ echo ' <link>http://ffmpeg.org</link>' >> $@
+ echo ' <description>FFmpeg RSS</description>' >> $@
+ echo ' <atom:link href="http://ffmpeg.org/main.rss" rel="self" type="application/rss+xml" />' >> $@
+ grep '<a *id=".*" *></a><h3>.*20..,.*</h3>' $< | sed 'sX<a *id="\(.*\)" *> *</a> *<h3>\(.*20..\), *\(.*\)</h3>X\
+ <item>\
+ <title>\2, \3</title>\
+ <link>http://ffmpeg.org/index.html#\1</link>\
+ <guid>http://ffmpeg.org/index.html#\1</guid>\
+ </item>\
+X' >> $@
+ echo '</channel>' >> $@
+ echo '</rss>' >> $@
+
+
.PHONY: all clean
-----------------------------------------------------------------------
Summary of changes:
Makefile | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
hooks/post-receive
--
More information about the ffmpeg-cvslog
mailing list