view makeBooklet.sh @ 659:763c6916cc7d build-default-259

Remove old Windows Media Player embedded object for playing audio. We're in the world of HTML5 now. And Firefox has started playing tunes on page download.
author Jim Hague <jim.hague@acm.org>
date Sun, 05 Feb 2017 22:51:30 +0000
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