view makeAll.sh @ 667:c9945842c523 build-default-264

Amend chords in Sue's Tune to Sue's preferred.
author Jim Hague <jim.hague@acm.org>
date Sat, 15 Apr 2017 21:30:56 +0100
parents 614b91409c85
children 2f6e05d0aba0
line wrap: on
line source

#!/bin/bash
#
# Build all forms of the Booke.

if [ $# -lt 1 ]; then
    echo "Usage: makeAll.sh <booke dir name> [<booke dir name> ...]"
    exit 1
fi

makeABooke()
{
    ./makeGraphics.sh "$1"
    ./makeBookeTunePages.sh "$1"
    ./makeBooke.sh A4 "$1"
    ./makeBooke.sh A5 "$1"
    ./makeBooklet.sh "$1"
    ./makeBooke.sh Nook "$1"
    ./makeWebGraphics.sh "$1"
    ./makeWebAudio.sh "$1"
    ./makeWeb.sh "$1" "$1" "$2"
}

makeATransposedBooke()
{
    ./makeGraphics.sh "$1"
    ./makeBookeTunePages.sh "$1"
    ./makeBooke.sh A4 "$1"
    ./makeBooke.sh A5 "$1"
    ./makeBooklet.sh "$1"
    ./makeBooke.sh Nook "$1"
    ./makeWebGraphics.sh "$1"
    ./makeWeb.sh "$1" "$2" "$3"
}

makeASingleBooke()
{
    makeABooke $1

    ./makeCello.sh $1
    makeATransposedBooke $1-Cello $1 cello

    ./makeHornInF.sh $1
    makeATransposedBooke $1-HornInF $1 "horn in F"
}

makeBumperBooke()
{
    # This can only be used once all the other Bookes have been built.
    ./makeBooke.sh A4 "$@"
    ./makeBooke.sh A5 "$@"
    ./makeBooklet.sh "Bumper"
}

for booke in "$@"
do
    makeASingleBooke $booke
done
if [ $# -gt 1 ]; then
    makeBumperBooke "$@"
    cp Bumper*.pdf ./web
fi