f0c9a46aad773dba6ae59bdf0261a1ea977e4e9d
[~bandali/bndl.org] / meta_feed_atom.m4
1 include(meta_notes.m4)dnl
2 <?xml version="1.0" encoding="UTF-8"?>
3 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
4 <title>Amin Bandali's Personal Site</title>
5 <id>tag:bandali.eu.org,atom,notes/</id>
6 <link href="https://bandali.eu.org/notes.atom" rel="self" type="application/atom+xml"/>
7 <link href="https://bandali.eu.org" rel="alternate" type="text/html"/>
8 <updated>syscmd(date -Iseconds -u | tr -d \\n)</updated>
9 define(__feed_atom)dnl
10 define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1,
11 `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')')
12 fordown(`__i',__latest,eval(__latest-10),`
13 syscmd(sed "s/\&/\&amp;/g;s/>/\&gt;/g;s/</\&lt;/g" _get(`notes', __i).m4 | m4 -D__feed_atom)')
14 </feed>