Mercurial > dottes
comparison makeWebGraphics.sh @ 1026:e4d31e094d24
Changes to get Beginners booke building.
The web pages include prev and next links, so to get those right we
have to make the tune filenames distinct from the main booke names.
So fall back to taking the easy way, and just prefix all tune names with
@ or _.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Tue, 18 Feb 2020 15:13:38 +0000 |
parents | 0f4ba68d6059 |
children | 70e1ff83fe34 |
comparison
equal
deleted
inserted
replaced
1025:796ef7213ef7 | 1026:e4d31e094d24 |
---|---|
27 find $booke -maxdepth 1 -name "*.abc" | sort | | 27 find $booke -maxdepth 1 -name "*.abc" | sort | |
28 while read filename | 28 while read filename |
29 do | 29 do |
30 name=`basename $filename .abc` | 30 name=`basename $filename .abc` |
31 tunedir=$basetunedir/$name | 31 tunedir=$basetunedir/$name |
32 | |
33 # Already generated? | |
34 if [ -f $tunedir/${name}.pdf ]; then | |
35 continue | |
36 fi | |
37 | |
32 mkdir -p $tunedir | 38 mkdir -p $tunedir |
33 | 39 |
34 tmpname=${name}.tmp | 40 tmpname=${name}.tmp |
35 convert -colors 256 -quality 90 -density 200 $graphicsdir/${name}.pdf $tunedir/${tmpname}.png | 41 convert -colors 256 -quality 90 -density 200 $graphicsdir/${name}.pdf $tunedir/${tmpname}.png |
36 convert -colors 256 -quality 90 -density 200 $graphicsdir/firstline-${name}.pdf $tunedir/firstline-${tmpname}.png | 42 convert -colors 256 -quality 90 -density 200 $graphicsdir/firstline-${name}.pdf $tunedir/firstline-${tmpname}.png |