Mercurial > dottes
comparison makeWeb.sh @ 382:04bd083eed29
Ratchet up the IE8 attempt.
Thanks to http://www.yourwebskills.com/htmlobject.php.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Fri, 30 Aug 2013 23:55:22 +0100 |
parents | 5628fcd6c692 |
children | ce5dccdd45bd |
comparison
equal
deleted
inserted
replaced
379:6c96275965d6 | 382:04bd083eed29 |
---|---|
25 graphicsdir=$dir/graphics/$1 | 25 graphicsdir=$dir/graphics/$1 |
26 output=index.html | 26 output=index.html |
27 tunelist=tunelist.html | 27 tunelist=tunelist.html |
28 booke=$1 | 28 booke=$1 |
29 masterbooke=$2 | 29 masterbooke=$2 |
30 masterwebdir=$dir/web/$2 | |
30 title=$booke | 31 title=$booke |
31 instrument=$3 | 32 instrument=$3 |
32 | 33 |
33 buildno=`cat buildno.txt` | 34 buildno=`cat buildno.txt` |
34 # Remove trailing % added for Latex purposes. | 35 # Remove trailing % added for Latex purposes. |
61 | 62 |
62 # Copy in the book PDFs. Like the graphics, Midi etc. these are assumed | 63 # Copy in the book PDFs. Like the graphics, Midi etc. these are assumed |
63 # to be already generated. | 64 # to be already generated. |
64 cp $1-*.pdf $webdir | 65 cp $1-*.pdf $webdir |
65 | 66 |
66 # Now, for each tune, make the tune graphic and sound. | 67 # Now, for each tune, make the tune page. |
67 find $bookedir -name "*.abc" | sort | | 68 find $bookedir -name "*.abc" | sort | |
68 while read filename | 69 while read filename |
69 do | 70 do |
70 name=`basename $filename .abc` | 71 name=`basename $filename .abc` |
71 | 72 |
92 lastchanged=`hg log --limit 1 --template "{date|shortdate}" $filename` | 93 lastchanged=`hg log --limit 1 --template "{date|shortdate}" $filename` |
93 | 94 |
94 # Copy the ABC into the web. | 95 # Copy the ABC into the web. |
95 cp $filename $webdir | 96 cp $filename $webdir |
96 | 97 |
98 # If we are not the master booke, link the mp3 in from the | |
99 # master page in a desperate attempt to make IE8 work. | |
100 if [ "$booke" != "$masterbooke" ]; then | |
101 ln -s -r ${masterwebdir}/${name}.mp3 ${webdir} | |
102 fi | |
103 | |
97 # Generate the tune web page. | 104 # Generate the tune web page. |
98 tunepage=${name}.html | 105 tunepage=${name}.html |
99 | 106 |
100 # If the title contains HTML character entities, escape | 107 # If the title contains HTML character entities, escape |
101 # initial '&' in the title - it means things to sed. | 108 # initial '&' in the title - it means things to sed. |