Mercurial > dottes
comparison makeWeb.sh @ 202:540511b14c73
Handle '&' appearing in HTML output from tune titles.
It must be escaped or sed will substitute the pattern being searched for
at that point in the result.
| author | Jim Hague <jim.hague@acm.org> |
|---|---|
| date | Sun, 17 Feb 2013 01:29:44 +0000 |
| parents | b8d18ccdc6e4 |
| children | 9502f4883006 |
comparison
equal
deleted
inserted
replaced
| 201:f606da6f8718 | 202:540511b14c73 |
|---|---|
| 57 cp $filename $webdir | 57 cp $filename $webdir |
| 58 | 58 |
| 59 # Generate the tune web page. | 59 # Generate the tune web page. |
| 60 tunepage=${name}.html | 60 tunepage=${name}.html |
| 61 | 61 |
| 62 sed -e "s/@TITLE@/${title}/" \ | 62 sed -e "s/@TITLE@/${title//&/\&}/" \ |
| 63 -e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage | 63 -e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage |
| 64 | 64 |
| 65 sed -e "s/@TITLE@/${title}/" \ | 65 sed -e "s/@TITLE@/${title//&/\&}/" \ |
| 66 -e "s/@TUNE@/${name}/" dottes.html.tuneindex >> $webdir/$output | 66 -e "s/@TUNE@/${name}/" dottes.html.tuneindex >> $webdir/$output |
| 67 done | 67 done |
| 68 | 68 |
| 69 cat dottes.html.footer >> $webdir/$output | 69 cat dottes.html.footer >> $webdir/$output |
