blob: 7e6933db57fe77e41d98c3ca67e704f790d3a819 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
. ./meta.sh
cat <<- EOT
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>$title</title>
<link>$link/</link>
<description>$description</description>
<managingEditor>mvertes@free.fr</managingEditor>
<pubDate>$(date -R)</pubDate>
EOT
for d in *; do
[ -d "$d" ] || continue
cd $d
. ./meta.sh
cat <<- EOT
<item>
<title>$title</title>
<link>$link/$d/</link>
<description>$description</description>
<author>$author</author>
<pubDate>$date_rfc2822</pubDate>
<content:encoded><![CDATA[$(awk '/<h1 / {p=!p} p' index.html)]]></content:encoded>
</item>
EOT
done
cat <<- EOT
</channel>
</rss>
EOT
|