ref: 0011a6aa7e40603e6dd1a1b02faff2932bfb30d2
parent: 71900914565daa28a67acbd6b522bba719d816c7
author: Stanley Lieber <sl@stanleylieber.com>
date: Mon Dec 9 18:21:45 EST 2019
apps/blagh/rss20.tpl: find the correct most recently updated file so the <lastBuildDate> field is precisely accurate.
--- a/apps/blagh/rss20.tpl
+++ b/apps/blagh/rss20.tpl
@@ -23,7 +23,7 @@
%{
# <webMaster>uriel99+rss@gmail.com (Uriel)</webMaster>
# rfc2822 last time channel content changed.
- lbd=`{ndate -m `{date `{mtime `{ls $blagh_root$blagh_dirs | grep -e '^'$blagh_root$blagh_dirs'\/[0-9][0-9][0-9][0-9]$' | tail -1} | awk '{print $1}'}}}
+ lbd=`{ndate -m `{date `{mtime `{ls $blagh_root$blagh_dirs/[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/[0-9] | tail -1} | awk '{print $1}'}}}
echo '<lastBuildDate>'$"lbd'</lastBuildDate>'
# rfc2822 publication date for content in the channel.
pubdate=`{ndate -m}
--
⑨