Mercurial > hg > index.fcgi > www > www-1
comparison myrss/myrss_update.sh @ 12:2e8351e61e8f
myrss/FEEDS: add more rss feeds
author | paulo@twcdns.fastsearch.net |
---|---|
date | Wed, 15 Sep 2010 01:25:20 -0700 |
parents | 8afd18e103c7 |
children | 5a0c2ee709f8 |
comparison
equal
deleted
inserted
replaced
0:5f46b1191ede | 1:6fab85a754a8 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 OUTFILE="test.html" | 3 TIMESTAMP=$(date '+%FT%T%:z') |
4 | 4 |
5 echo '' > ${OUTFILE} | 5 echo '<HTML>' |
6 echo '<HEAD>' | |
7 echo "<TITLE>${TIMESTAMP}</TITLE>" | |
8 echo '<LINK REL="stylesheet" TYPE="text/css" HREF="index.css">' | |
9 echo '</HEAD>' | |
10 | |
11 echo '<BODY>' | |
12 echo "<H1>${TIMESTAMP}</H1>" | |
6 | 13 |
7 while read LINE | 14 while read LINE |
8 do | 15 do |
9 wget -q -U '' -O - ${LINE} | xsltproc step1.xsl - | xsltproc step2.xsl - >> ${OUTFILE} | 16 wget -q -U '' -O - ${LINE} | xsltproc step1.xsl - | xsltproc step2.xsl - |
10 done < FEEDS | 17 done < FEEDS |
18 | |
19 echo '</BODY>' | |
20 echo '</HTML>' |