9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] dvips
@ 2004-02-29 16:25 David Swasey
  0 siblings, 0 replies; only message in thread
From: David Swasey @ 2004-02-29 16:25 UTC (permalink / raw)
  To: 9fans

The first time dvips sees a "new" font, it generates some file it
needs and saves the generated file for subsequent runs.  This
memoization did not work because the program mktexupd was failing to
record that the generated file exists.

The patch below fixes mktexupd and significantly speeds up dvips.
(The old code either confused APE's sh or was broken.  Sed saw the
filename '"/sys/lib/texmf/ls-R"' rather than '/sys/lib/texmf/ls-R'.)

-dave

diff /n/dump/2004/0229/sys/lib/texmf/web2c/mktexupd /sys/lib/texmf/web2c/mktexupd
41,42c41,43
< test "x`sed 1q \"$db_file\"`" = "x$ls_R_magic" \
<   || test "x`sed 1q \"$db_file\"`" = "x$old_ls_R_magic" \
---
> found_magic=`sed 1q "$db_file"`
> test "x$found_magic" = "x$ls_R_magic" \
>   || test "x$found_magic" = "x$old_ls_R_magic" \



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-29 16:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-29 16:25 [9fans] dvips David Swasey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).