summaryrefslogtreecommitdiff
path: root/makerss.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makerss.sh')
-rwxr-xr-xmakerss.sh10
1 files 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 <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}";