diff makeWeb.sh @ 946:0f4ba68d6059 build-default-345

Fix target generation for transposed booke web items.
author Jim Hague <jim.hague@acm.org>
date Tue, 06 Aug 2019 08:48:39 +0100
parents d6e2a281cceb
children 40b43075a421
line wrap: on
line diff
--- 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