view makeAll.sh @ 603:ef0d66742e01

Revise build to allow multi-section books.
author Jim Hague <jim.hague@acm.org>
date Fri, 04 Nov 2016 17:59:10 +0000
parents 583c06d0e9ef
children d5357ee6b4b2
line wrap: on
line source

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

if [ $# != 1 ]; then
    echo "Usage: makeAll.sh <book dir name>"
    exit 1
fi

makeABooke()
{
    ./makeGraphics.sh "$1"
    ./makeBookeTunePages.sh "$1"
    ./makeBooke.sh A4 "$1"
    ./makeBooke.sh A4 "$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"
}

makeABooke $1

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

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