All pastes #675709 Raw Edit

Anonymous

public text v1 · immutable
#675709 ·published 2007-08-30 12:35 UTC
rendered paste body
#!/bin/sh
cat << EOF
<?xml version="1.0" ?>
<rss version="2.0">

<channel>
 <title>Debian BTS News Feed</title>
 <link>http://asdfasdf.debian.net/~tar/bts/</link>
 <description>Latest Debian BTS Changes</description>
EOF

find bts-spool-db -name "*.summary" -type f -mmin -240 | while read b; do
    bug=`echo $b | sed "s,.*/,,;s,.summary,,"`
    p=`cat $b | grep ^Package: | sed "s,^Package: ,,"`
    s=`cat $b | grep ^Subject: | sed "s,^Subject: ,,"`

    echo "<item>"
    echo "<title>${p} - ${s}</title>"
    echo "<link>http://bugs.debian.org/${bug}>${bug}</link>"
    echo "</item>"
done
echo "</channel>"