annotate myrss/myrss_update.sh @ 11:ab0455f2a832

myrss/step1.xsl: parse only link rel="alternate" for Atom feeds
author paulo@twcdns.fastsearch.net
date Tue, 14 Sep 2010 23:32:09 -0700
parents 8afd18e103c7
children 5a0c2ee709f8
rev   line source
paulo@8 1 #!/bin/sh
paulo@8 2
paulo@9 3 TIMESTAMP=$(date '+%FT%T%:z')
paulo@8 4
paulo@9 5 echo '<HTML>'
paulo@9 6 echo '<HEAD>'
paulo@9 7 echo "<TITLE>${TIMESTAMP}</TITLE>"
paulo@9 8 echo '<LINK REL="stylesheet" TYPE="text/css" HREF="index.css">'
paulo@9 9 echo '</HEAD>'
paulo@9 10
paulo@9 11 echo '<BODY>'
paulo@9 12 echo "<H1>${TIMESTAMP}</H1>"
paulo@8 13
paulo@8 14 while read LINE
paulo@8 15 do
paulo@9 16 wget -q -U '' -O - ${LINE} | xsltproc step1.xsl - | xsltproc step2.xsl -
paulo@8 17 done < FEEDS
paulo@9 18
paulo@9 19 echo '</BODY>'
paulo@9 20 echo '</HTML>'