view makeBooklet.sh @ 356:6d4b2dab5fcc build-default-158

Corrections from Mick. 1. Add missing two last notes in final bar of B tune. 2. Move 'no chord' marker to start of 2nd repeat in A tune. 3. Mark middle B in last line of Horse's Brawl as Bb. 4. Last note of 4th bar of King of the Fairies should be quaver. 5. 4th bar of B tune should be same as 4th bar of A tune in Plane Tree. 6. Railway has change to Fiery Clock Face.
author Jim Hague <jim.hague@acm.org>
date Mon, 19 Aug 2013 10:09:02 +0100
parents 06e140f48543
children
line wrap: on
line source

#!/bin/bash
#
# Assuming the existance of the A5 PDF of the given Booke, produce the
# A4 booklet-that-prints-as-A5.
#

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

dir=`pwd`

builddir=$dir/build

booke=$1-A5.pdf
# This assumes dottesA5.pdf as input.
booklet=$dir/dottesA5onA4booklet.tex
bookletpdf=$builddir/dottesA5onA4booklet.pdf

mkdir -p $builddir

cp $booke $builddir/dottesA5.pdf

cd $builddir
xelatex $booklet
mv $bookletpdf $dir/${1}-A5bookletA4.pdf