Ability to create an A5 booklet

This commit is contained in:
Sebastian Hugentobler 2013-08-09 00:01:04 +02:00
parent 4d5e8d0034
commit 8b89d71f56
2 changed files with 11 additions and 3 deletions

View File

@ -14,7 +14,7 @@ VPATH = \
$(CURDIR)/notes \
$(CURDIR)/pdf \
all: book
all: book booklet
book: $(OUTDIR) $(PDFDIR) $(GITINFO)
cp lilysettings.ly $(OUTDIR)/
@ -30,6 +30,14 @@ book: $(OUTDIR) $(PDFDIR) $(GITINFO)
cp $(CURDIR)/$(OUTDIR)/$(FILE).pdf $(CURDIR)/$(PDFDIR)/$(FILE).pdf
rm $(GITINFO)
booklet: book
pdf2ps $(OUTDIR)/$(FILE).pdf $(OUTDIR)/$(FILE).ps
psbook $(OUTDIR)/$(FILE).ps $(OUTDIR)/booklet_tmp.ps
pstops -pA4 '1:0@1.0(0cm,0cm)' $(OUTDIR)/booklet_tmp.ps $(OUTDIR)/booklet_tmp00.ps
psnup -2 $(OUTDIR)/booklet_tmp00.ps $(OUTDIR)/booklet.ps
ps2pdf $(OUTDIR)/booklet.ps $(OUTDIR)/$(FILE)_booklet.pdf
cp $(CURDIR)/$(OUTDIR)/$(FILE)_booklet.pdf $(CURDIR)/$(PDFDIR)/$(FILE)_booklet.pdf
$(OUTDIR):
mkdir -p $(OUTDIR)