diff options
author | Nick White <git@njw.me.uk> | 2010-04-20 17:36:48 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-04-20 17:36:48 +0100 |
commit | fc60efe7574de323e40b59627b8d2393b43cb718 (patch) | |
tree | 3c46d1f83995818b6cc1aa692b7c4de9b622a15b | |
parent | 29fc79e8ea643cd7ff128708211a2c72effe96bb (diff) | |
download | njw-website-fc60efe7574de323e40b59627b8d2393b43cb718.tar.bz2 njw-website-fc60efe7574de323e40b59627b8d2393b43cb718.zip |
Correct rss script
-rwxr-xr-x | makerss.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -18,19 +18,19 @@ cat << EOF dc:creator <${creator}>; cc:license <http://creativecommons.org/licenses/by-sa/3.0/>; - rss:items ( + rss:items [ a rdf:Seq; EOF for item in $items; do - echo " <${siteurl}${item}>" + echo " rdf:li <${siteurl}${item}>;" done -echo " )." +echo " ]." for item in $items; do title=`head -n 1 ./${item}.txt` - moddate=`ls -lc ./${item}.txt|awk '{print $6}'` - link="${siteurl}${item}" + moddate=`ls -lc --time-style=+%Y-%m-%d ./${item}.txt|awk '{print $6}'` + link="${siteurl}${item}" cat << EOF <${link}> a rss:item; rss:title "${title}"; |