#!/bin/bash

lilypond frontpage.ly
lilypond version.ly
lilypond dedication.ly
lilypond blank.ly
lilypond bwv-988.ly

/usr/bin/qpdf --linearize bwv-988.pdf B.pdf

/usr/bin/pdfunite frontpage.pdf version.pdf goldberg_title.pdf dedication.pdf d.pdf

/usr/bin/qpdf --linearize d.pdf D.pdf

/usr/bin/pdfunite D.pdf B.pdf BWV-988-2.1.pdf

/usr/bin/qpdf --linearize BWV-988-2.1.pdf b.pdf

mv b.pdf BWV-988-2.1.pdf

