#%.pdf: %.tex ../sgr.tex ../ga.bib
# pdfcsplain $<
-%.pdf: %.ps
- ps2pdf $< $@
-
%.ps: %.dvi
dvips -D600 -o $@ -O-15.4mm,-15.4mm -t a5 $<
-%-booklet.ps: %.ps
- psbook <$< | pstops '2:0L(210mm,0)+1L(210mm,148mm)' | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
+#%-booklet.ps: %.ps
+# psbook <$< | pstops '2:0L(210mm,0)+1L(210mm,148mm)' | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
+
+#%-2in1.ps: %.ps
+# pstops '2:0L(210mm,0mm)+1L(210mm,148mm)' <$< | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
+
+%.pdf: %.ps
+ ps2pdf $< $@
+
+%-2in1.pdf: %.pdf
+ pspdftool 'nup(2, paper=a4)' $< $@
-%-2in1.ps: %.ps
- pstops '2:0L(210mm,0mm)+1L(210mm,148mm)' <$< | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
+%-booklet.pdf: %.pdf
+ pspdftool 'book nup(2, paper=a4)' $< $@
mostlyclean:
rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg *.toc
ifndef CUSTOM_UPLOAD
upload::
- make $P-booklet.ps
- scp -C $P-booklet.ps jabberwock:www/vyuka/ga/$P-booklet.ps
+ make $P-booklet.pdf
+ scp -C $P-booklet.pdf jabberwock:www/vyuka/ga/
endif
.SECONDARY:
P=ga
-X=$(shell for a in 0 1 2 3 4 5 6 7 8 9 10 11 ; do echo ../$$a-*/$$a-*.tex ; done)
+X=$(shell for a in 0 1 2 3 4 5 6 7 8 9 10 11 12 ; do echo ../$$a-*/$$a-*.tex ; done)
universe: all ChangeLog
rm -f body.tex ChangeLog
upload::
- make $P.ps $P-2in1.ps
- scp -C $P.ps $P-2in1.ps jabberwock:www/vyuka/ga/
+ make $P.pdf $P-2in1.pdf
+ scp -C $P.pdf $P-2in1.pdf jabberwock:www/vyuka/ga/
( cd .. && make clean )
- ( cd ../.. && tar czf - --exclude .git ga ) | ssh jabberwock 'cd www/vyuka/ga/ && cat >ga.tar.gz.new && mv ga.tar.gz.new ga.tar.gz'
+# ( cd ../.. && tar czf - --exclude .git ga ) | ssh jabberwock 'cd www/vyuka/ga/ && cat >ga.tar.gz.new && mv ga.tar.gz.new ga.tar.gz'
make ChangeLog && cat ChangeLog | ssh jabberwock 'cd www/vyuka/ga && cat >ChangeLog.new && mv ChangeLog.new ChangeLog'