diff myrss/myrss_update.sh @ 9:fbd8c30c465c

add more RSS feeds; normalize-space in step2.xsl and "a hrefs"; myrss_update.sh now outputs a more complete HTML document to stdout
author paulo@twcdns.fastsearch.net
date Sun, 12 Sep 2010 23:36:32 -0700
parents 8afd18e103c7
children 5a0c2ee709f8
line diff
     1.1 --- a/myrss/myrss_update.sh	Sat Sep 11 04:20:41 2010 -0700
     1.2 +++ b/myrss/myrss_update.sh	Sun Sep 12 23:36:32 2010 -0700
     1.3 @@ -1,10 +1,20 @@
     1.4  #!/bin/sh
     1.5  
     1.6 -OUTFILE="test.html"
     1.7 +TIMESTAMP=$(date '+%FT%T%:z')
     1.8  
     1.9 -echo '' > ${OUTFILE}
    1.10 +echo '<HTML>'
    1.11 +echo '<HEAD>'
    1.12 +echo "<TITLE>${TIMESTAMP}</TITLE>"
    1.13 +echo '<LINK REL="stylesheet" TYPE="text/css" HREF="index.css">'
    1.14 +echo '</HEAD>'
    1.15 +
    1.16 +echo '<BODY>'
    1.17 +echo "<H1>${TIMESTAMP}</H1>"
    1.18  
    1.19  while read LINE
    1.20  do
    1.21 -	wget -q -U '' -O - ${LINE} | xsltproc step1.xsl - | xsltproc step2.xsl - >> ${OUTFILE}
    1.22 +	wget -q -U '' -O - ${LINE} | xsltproc step1.xsl - | xsltproc step2.xsl - 
    1.23  done < FEEDS
    1.24 +
    1.25 +echo '</BODY>'
    1.26 +echo '</HTML>'