#!/bin/bash

PATH=/home/evret/lilypond-2.24.3/bin/:$PATH

#

/home/evret/lilypond-2.24.3/bin/lilypond frontpage.ly
/home/evret/lilypond-2.24.3/bin/lilypond version.ly

#/home/evret/lilypond-2.24.3/bin/lilypond blank1.ly
#lilypond blank.ly


echo "fixing broken pdfs"

qpdf --linearize Opus8_no3.pdf s.pdf
mv s.pdf Opus8No3.pdf

qpdf --linearize Opus8_no4.pdf s.pdf
mv s.pdf Opus8No4.pdf

#
qpdf --empty \
    --pages \
	frontpage.pdf \
	version.pdf \
	Opus8_no3.pdf \
	Opus8_no4.pdf \
      -- Opus8_no3_no4.pdf

