[prev in list] [next in list] [prev in thread] [next in thread] 

List:       9fans
Subject:    [9fans] dvips
From:       David Swasey <swasey () cs ! cmu ! edu>
Date:       2004-02-29 16:25:51
Message-ID: 8d3aa4d58bde7cdc6b4d39c21684bff4 () cs ! cmu ! edu
[Download RAW message or body]

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" \


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic