don't regenerate the feeds when non-note m4 files change
[~bandali/bndl.org] / meta_feed_atom.m4
index 72ac296..32af856 100644 (file)
@@ -2,14 +2,15 @@ include(meta_defs.m4)dnl
 <?xml version="1.0" encoding="UTF-8"?>
 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
 <title>Amin Bandali's Personal Site</title>
 <?xml version="1.0" encoding="UTF-8"?>
 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
 <title>Amin Bandali's Personal Site</title>
-<id>tag:bndl.org,2020:notes.atom</id>
-<link href="https://bndl.org/notes.atom" rel="self" type="application/atom+xml"/>
-<link href="https://bndl.org/notes.rss" rel="alternate" type="application/rss+xml" />
-<link href="https://bndl.org" rel="alternate" type="text/html"/>
+<subtitle>Notes and blog posts by Amin Bandali</subtitle>
+<id>tag:shemshak.org,2020:__p/notes.atom</id>
+<link href="__d`'__p/notes.atom" rel="self" type="application/atom+xml"/>
+<link href="__d`'__p/notes.rss" rel="alternate" type="application/rss+xml" />
+<link href="__d`'__p/" rel="alternate" type="text/html"/>
 <updated>syscmd(date -Iseconds -u | tr -d \\n)</updated>
 define(__feed_atom)dnl
 define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1,
   `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')')
 fordown(`__i',__latest,eval(__latest-10),`
 <updated>syscmd(date -Iseconds -u | tr -d \\n)</updated>
 define(__feed_atom)dnl
 define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1,
   `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')')
 fordown(`__i',__latest,eval(__latest-10),`
-  syscmd(sed "s/\&/\&amp;/g;s/>/\&gt;/g;s/</\&lt;/g" _get(`notes', __i).m4 | m4 -D__feed_atom)')
+  syscmd(m4 -D__feed_atom -D__d=__d -D__p=__p _get(`notes', __i).m4)')
 </feed>
 </feed>