Mercurial > dottes
comparison 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 |
comparison
equal
deleted
inserted
replaced
945:5b6834425a34 | 946:0f4ba68d6059 |
---|---|
27 tunelist=tunelist.html | 27 tunelist=tunelist.html |
28 title=$booke | 28 title=$booke |
29 instrument=$3 | 29 instrument=$3 |
30 abc2xml=$dir/abc2xml/abc2xml.py | 30 abc2xml=$dir/abc2xml/abc2xml.py |
31 | 31 |
32 instrumentSuffix="${1##*-}" | |
33 if [ "$1" != "$instrumentSuffix" ]; then | |
34 basetunedir="${basetunedir}-${instrumentSuffix}" | |
35 fi | |
36 | |
32 buildno=`cat buildno.txt` | 37 buildno=`cat buildno.txt` |
33 # Remove trailing % added for Latex purposes. | 38 # Remove trailing % added for Latex purposes. |
34 buildno=${buildno%%%} | 39 buildno=${buildno%%%} |
35 subtitle= | 40 subtitle= |
36 intro= | 41 intro= |
39 fi | 44 fi |
40 | 45 |
41 if [ -n "$instrument" ]; then | 46 if [ -n "$instrument" ]; then |
42 title="${title} ($instrument)" | 47 title="${title} ($instrument)" |
43 subtitle="${subtitle} ($instrument)" | 48 subtitle="${subtitle} ($instrument)" |
44 basetunedir="${basetunedir}-${instrument}" | |
45 fi | 49 fi |
46 | 50 |
47 mkdir -p $bookewebdir | 51 mkdir -p $bookewebdir |
48 | 52 |
49 sed -e "s/@BUILD@/$buildno/" -e "s/@SUBTITLE@/$subtitle/" \ | 53 sed -e "s/@BUILD@/$buildno/" -e "s/@SUBTITLE@/$subtitle/" \ |