chiark / gitweb /
layout/Makefile: adhoc rune for expanding some of our PostScript files
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 28 Nov 2010 13:34:36 +0000 (13:34 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 28 Nov 2010 13:34:36 +0000 (13:34 +0000)
layout/Makefile

index ad28b0551c0a23d1db43085cf8a1471b8b0caf80..74ad6e851b445898cc283dc2e159a73e7ed0a422 100644 (file)
@@ -89,6 +89,13 @@ compose-segenco: compose-segenco.o
 %.neato.ps:    %.neato
                neato -Gsize=7.5,7.5 -Gcenter=1 -Tps <$< $o
 
+LARGE_PS_FACTOR=3
+
+%.large.ps:    %.ps
+               pstops '0@3' <$< >$@.tmp
+               perl -p -e 's/\d+/ $$& * ${LARGE_PS_FACTOR} /eg' \
+                       -e '    if m/^\%\%.*BoundingBox/' <$@.tmp $o
+
 %.raw.neato:   %.redactgraph
                ./$< consistency printforneato $o