Mercurial > dottes
diff makeWeb.sh @ 484:4fab69a1027d build-default-207
Add MusicXML conversion to tune pages.
Might help someone.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Tue, 17 Jun 2014 09:11:38 +0100 |
parents | 1fa67fce807f |
children | a89eba8f6dd5 |
line wrap: on
line diff
--- a/makeWeb.sh Mon May 05 10:37:18 2014 +0100 +++ b/makeWeb.sh Tue Jun 17 09:11:38 2014 +0100 @@ -1,7 +1,8 @@ #!/bin/bash # # Build the website. The common items and the web items are assumed -# to be already built. +# to be already built. This generates the MusicXML and the page HTML +# and shuffles other files ino the right place. # #set -x @@ -60,6 +61,7 @@ masterbooke=$2 title=$booke instrument=$3 +abc2xml=$dir/abc2xml/abc2xml.py buildno=`cat buildno.txt` # Remove trailing % added for Latex purposes. @@ -101,6 +103,7 @@ do name=`basename $filename .abc` + # Extract items to substitute in the web page. title=`$dir/abcfield.py --field T --html $filename` fixtitle "$title" title=$retval @@ -131,6 +134,9 @@ # Copy the ABC into the web. cp $filename $webdir + # Generate MusicXML into the web. + python $abc2xml $filename > ${webdir}/${name}.xml + # If we are not the master booke, link the mp3s in from the # master page in a desperate attempt to make IE8 work. # The Jenkins archive will dereference the soft link, it seems,