# HG changeset patch # User Jim Hague # Date 1565077719 -3600 # Node ID 0f4ba68d60592fb40d5be2ccfa07eadb5ac29293 # Parent 5b6834425a3491e25276b6bdbc81880725335a9f Fix target generation for transposed booke web items. diff -r 5b6834425a34 -r 0f4ba68d6059 makeWeb.sh --- a/makeWeb.sh Tue Aug 06 08:47:45 2019 +0100 +++ b/makeWeb.sh Tue Aug 06 08:48:39 2019 +0100 @@ -29,6 +29,11 @@ instrument=$3 abc2xml=$dir/abc2xml/abc2xml.py +instrumentSuffix="${1##*-}" +if [ "$1" != "$instrumentSuffix" ]; then + basetunedir="${basetunedir}-${instrumentSuffix}" +fi + buildno=`cat buildno.txt` # Remove trailing % added for Latex purposes. buildno=${buildno%%%} @@ -41,7 +46,6 @@ if [ -n "$instrument" ]; then title="${title} ($instrument)" subtitle="${subtitle} ($instrument)" - basetunedir="${basetunedir}-${instrument}" fi mkdir -p $bookewebdir diff -r 5b6834425a34 -r 0f4ba68d6059 makeWebGraphics.sh --- a/makeWebGraphics.sh Tue Aug 06 08:47:45 2019 +0100 +++ b/makeWebGraphics.sh Tue Aug 06 08:48:39 2019 +0100 @@ -4,8 +4,8 @@ # They go into web/tunes/, or web/tunes-/. # -if [[ $# -lt 1 ]]; then - echo "Usage: makeWebGraphics.sh []" +if [[ $# -ne 1 ]]; then + echo "Usage: makeWebGraphics.sh " exit 1 fi @@ -15,10 +15,10 @@ basewebdir=$dir/web basetunedir=$basewebdir/tunes graphicsdir=$dir/graphics/$1 -instrument=$2 -if [ -n "$instrument" ]; then - basetunedir="${basetunedir}-${instrument}" +instrumentSuffix="${1##*-}" +if [ "$1" != "$instrumentSuffix" ]; then + basetunedir="${basetunedir}-${instrumentSuffix}" fi # Now, for each tune, make the main tune and tune first line bitmaps.