ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mtxrun problem "HEXsum"
@ 2009-05-15 21:40 Henning Hraban Ramm
  2009-05-16 11:26 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm @ 2009-05-15 21:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

(Sorry for double-posting, but my first message didn't show up yet,  
maybe it's lost. This one is corrected anyway.)

As far as I skimmed the discussions of the last days, this didn't show  
up yet:

In my LilyPond module I call the program like so:

\def\LP{mtxrun --ifchanged="\lily!filename.tmp" --exec bin:lilypond - 
dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts -ddelete- 
intermediate-files "\lily!filename.tmp"}
\def\PDF{mtxrun --ifchanged="\lily!filename.eps" pstopdf "\lily! 
filename.eps"}

\executesystemcommand{\LP}
\executesystemcommand{\PDF}

The former definition results in this call:

mtxrun --ifchanged="c_whatshallwedo-lilypond-1.tmp" --exec  
bin:lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts - 
ddelete-intermediate-files "c_whatshallwedo-lilypond-1.tmp"

The .tmp file exists and contains the right LilyPond code.
But I get an error like this from the LP call:

##############################################
.../texmf/tex/texmf-osx-intel/bin/mtxrun:1953: attempt to call field  
'HEXsum' (a nil value)
##############################################

Line 1953 is:

return md5.HEXsum(data)

Looks like a bug in mtxrun to me.
Lua MD5 docs at http://www.keplerproject.org/md5/manual.html#lua_api  
say, there'd be only "sum" and "sumhexa" methods.
Replacing "HEXsum" with "sum" works (.md5 files are written),  
"sumhexa" gives the same error as above.

But it seems LilyPond is called now every time, ignoring the checksum,  
so simply "sum" at that one place isn't enough.


Further, the PDF call gives:

MTXrun | file 'c_whatshallwedo-lilypond-1.eps' is unchanged

Even if the .eps file doesn't exist at all.



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mtxrun problem "HEXsum"
  2009-05-15 21:40 mtxrun problem "HEXsum" Henning Hraban Ramm
@ 2009-05-16 11:26 ` Hans Hagen
  2009-05-16 17:55   ` Henning Hraban Ramm
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2009-05-16 11:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Henning Hraban Ramm wrote:

> ##############################################
> ..../texmf/tex/texmf-osx-intel/bin/mtxrun:1953: attempt to call field 
> 'HEXsum' (a nil value)
> ##############################################

should be

             return md5.HEX(data)


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mtxrun problem "HEXsum"
  2009-05-16 11:26 ` Hans Hagen
@ 2009-05-16 17:55   ` Henning Hraban Ramm
  0 siblings, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm @ 2009-05-16 17:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2009-05-16 um 13:26 schrieb Hans Hagen:

>> ..../texmf/tex/texmf-osx-intel/bin/mtxrun:1953: attempt to call  
>> field 'HEXsum' (a nil value)
> should be
>
>            return md5.HEX(data)


Yes, that seems to fix the issue. Thank you!


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-16 17:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-15 21:40 mtxrun problem "HEXsum" Henning Hraban Ramm
2009-05-16 11:26 ` Hans Hagen
2009-05-16 17:55   ` Henning Hraban Ramm

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).