Mercurial > dottes
view makeWebGraphics.sh @ 356:6d4b2dab5fcc build-default-158
Corrections from Mick.
1. Add missing two last notes in final bar of B tune.
2. Move 'no chord' marker to start of 2nd repeat in A tune.
3. Mark middle B in last line of Horse's Brawl as Bb.
4. Last note of 4th bar of King of the Fairies should be quaver.
5. 4th bar of B tune should be same as 4th bar of A tune in Plane Tree.
6. Railway has change to Fiery Clock Face.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Mon, 19 Aug 2013 10:09:02 +0100 |
parents | b61c39beac5f |
children | 4cc820c7cf04 |
line wrap: on
line source
#!/bin/bash # # Make graphics required for the website but not for the book. # They go into web/<book>. # if [ $# != 1 ]; then echo "Usage: makeWebGraphics.sh <book dir name>" exit 1 fi dir=`pwd` booke=$dir/$1 builddir=$dir/web/$1 graphicsdir=$dir/graphics/$1 mkdir -p $builddir # Now, for each tune, make the main tune and tune first line bitmaps. # Do this to temp files and rename into place to make updates as # atomic as possible. find $booke -name "*.abc" | sort | while read filename do name=`basename $filename .abc` tmpname=${name}.tmp convert -density 96 $graphicsdir/${name}.pdf $builddir/${tmpname}.png convert -density 96 $graphicsdir/firstline-${name}.pdf $builddir/firstline-${tmpname}.png mv $builddir/${tmpname}.png $builddir/${name}.png mv $builddir/firstline-${tmpname}.png $builddir/firstline-${name}.png # Make the web downloadable PDF with the tune title. abcm2ps -E -F singletuneweb -O $builddir/$name.eps $filename # And make the corresponding PDF. epstopdf --outfile=$builddir/$name.pdf $builddir/${name}001.eps done