Mercurial > dottes
comparison makeGraphics.sh @ 1030:70e1ff83fe34
Remove the 'already generated' checks.
Let's make sure all content gets generated.
I really, really need to do a proper build system for this lot.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Wed, 19 Feb 2020 10:48:56 +0000 |
parents | e4d31e094d24 |
children |
comparison
equal
deleted
inserted
replaced
1029:1139aa0eb0c2 | 1030:70e1ff83fe34 |
---|---|
19 # Now, for each tune, make the tune graphic. | 19 # Now, for each tune, make the tune graphic. |
20 find $booke -maxdepth 1 -name "*.abc" | | 20 find $booke -maxdepth 1 -name "*.abc" | |
21 while read filename | 21 while read filename |
22 do | 22 do |
23 name=`basename $filename .abc` | 23 name=`basename $filename .abc` |
24 | |
25 # Already generated? | |
26 if [ -f $graphicsdir/${name}.pdf ]; then | |
27 continue | |
28 fi | |
29 | 24 |
30 # Make the tune graphic. | 25 # Make the tune graphic. |
31 abcm2ps -E -F singletune -O $graphicsdir/$name.eps $filename | 26 abcm2ps -E -F singletune -O $graphicsdir/$name.eps $filename |
32 # Make $name.eps so we can build with LaTeX. | 27 # Make $name.eps so we can build with LaTeX. |
33 mv $graphicsdir/${name}001.eps $graphicsdir/${name}.eps | 28 mv $graphicsdir/${name}001.eps $graphicsdir/${name}.eps |
56 find ${booke}/Compact -maxdepth 1 -name "*.abc" | | 51 find ${booke}/Compact -maxdepth 1 -name "*.abc" | |
57 while read filename | 52 while read filename |
58 do | 53 do |
59 name=`basename $filename .abc` | 54 name=`basename $filename .abc` |
60 | 55 |
61 # Already generated? | |
62 if [ -f $graphicsdir/compact-${name}.pdf ]; then | |
63 continue | |
64 fi | |
65 | |
66 # Make the tune graphic. | 56 # Make the tune graphic. |
67 abcm2ps -E -F singletune -O $graphicsdir/compact-${name}.eps $filename | 57 abcm2ps -E -F singletune -O $graphicsdir/compact-${name}.eps $filename |
68 # Make $name.eps so we can build with LaTeX. | 58 # Make $name.eps so we can build with LaTeX. |
69 mv $graphicsdir/compact-${name}001.eps $graphicsdir/compact-${name}.eps | 59 mv $graphicsdir/compact-${name}001.eps $graphicsdir/compact-${name}.eps |
70 # And make the corresponding PDF. | 60 # And make the corresponding PDF. |