From fc60efe7574de323e40b59627b8d2393b43cb718 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 20 Apr 2010 17:36:48 +0100 Subject: Correct rss script --- makerss.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/makerss.sh b/makerss.sh index 653bbb2..2396542 100755 --- a/makerss.sh +++ b/makerss.sh @@ -18,19 +18,19 @@ cat << EOF dc:creator <${creator}>; cc:license ; - 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}"; -- cgit v1.2.3