forked from CryHavoc/dottes
Fix target generation for transposed booke web items.
This commit is contained in:
parent
08ca45a1cc
commit
441c321487
|
@ -29,6 +29,11 @@ title=$booke
|
||||||
instrument=$3
|
instrument=$3
|
||||||
abc2xml=$dir/abc2xml/abc2xml.py
|
abc2xml=$dir/abc2xml/abc2xml.py
|
||||||
|
|
||||||
|
instrumentSuffix="${1##*-}"
|
||||||
|
if [ "$1" != "$instrumentSuffix" ]; then
|
||||||
|
basetunedir="${basetunedir}-${instrumentSuffix}"
|
||||||
|
fi
|
||||||
|
|
||||||
buildno=`cat buildno.txt`
|
buildno=`cat buildno.txt`
|
||||||
# Remove trailing % added for Latex purposes.
|
# Remove trailing % added for Latex purposes.
|
||||||
buildno=${buildno%%%}
|
buildno=${buildno%%%}
|
||||||
|
@ -41,7 +46,6 @@ fi
|
||||||
if [ -n "$instrument" ]; then
|
if [ -n "$instrument" ]; then
|
||||||
title="${title} ($instrument)"
|
title="${title} ($instrument)"
|
||||||
subtitle="${subtitle} ($instrument)"
|
subtitle="${subtitle} ($instrument)"
|
||||||
basetunedir="${basetunedir}-${instrument}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p $bookewebdir
|
mkdir -p $bookewebdir
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
# They go into web/tunes/<tunename>, or web/tunes-<instrument>/<tunename>.
|
# They go into web/tunes/<tunename>, or web/tunes-<instrument>/<tunename>.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [[ $# -lt 1 ]]; then
|
if [[ $# -ne 1 ]]; then
|
||||||
echo "Usage: makeWebGraphics.sh <book dir name> [<instrument name>]"
|
echo "Usage: makeWebGraphics.sh <book dir name>"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -15,10 +15,10 @@ booke=$dir/$1
|
||||||
basewebdir=$dir/web
|
basewebdir=$dir/web
|
||||||
basetunedir=$basewebdir/tunes
|
basetunedir=$basewebdir/tunes
|
||||||
graphicsdir=$dir/graphics/$1
|
graphicsdir=$dir/graphics/$1
|
||||||
instrument=$2
|
|
||||||
|
|
||||||
if [ -n "$instrument" ]; then
|
instrumentSuffix="${1##*-}"
|
||||||
basetunedir="${basetunedir}-${instrument}"
|
if [ "$1" != "$instrumentSuffix" ]; then
|
||||||
|
basetunedir="${basetunedir}-${instrumentSuffix}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Now, for each tune, make the main tune and tune first line bitmaps.
|
# Now, for each tune, make the main tune and tune first line bitmaps.
|
||||||
|
|
Loading…
Reference in New Issue