[tex-live] TL2005 bin/i386-lunix/esptopdf is newer than texmf/scripts/tetex/epstopdf.pl

gnwiii at gmail.com gnwiii at gmail.com
Mon May 22 16:30:34 CEST 2006


Now that Apple's popularity is increasing, we need to make sure
everyone gets the version of epstopdf that handles <CR>, <CR-LF>, and
<LF>:

diff -bw bin/i386-linux/epstopdf texmf/scripts/tetex/epstopdf.pl
[...]
47,60d55
< #  2002/02/18 v2.8draft (Gerben Wierda)
< #    * Handle different eol styles transparantly
< #    * Applied fix from Peder Axensten for Freehand bug
< #  2002/02/21 v2.8draft (Gerben Wierda)
< #    * Fixed bug where last line of buffer was not copied out (ugh!)
< #  2003/04/22 v2.9draft (Gerben Wierda)
< #    * Fixed bug where with cr-eol files everything up to the first %!
< #    * in the first 2048 bytes was gobbled (double ugh!)
< #  2004/03/17 v2.9.1draft (Gerben Wierda)
< #    * No autorotate page
< #  2005/09/29 v2.9.2draft (Gerben Wierda)
< #    * Quote OutFilename
< #  2005/10/01 v2.9.3draft (Gerben Wierda)
< #    * Quote OutFilename

This sort of problem is inevitable when you have multiple copies of a
script.  There are already scripts (e.g., texexec, but perhaps a poor
example since current texexec is a ruby script) that find the
progname.pl script using kpathsea and run perl on that, so the scripts
need only appear in the texmf tree.   I'm currently testing the
following:

#!/bin/sh
# use ruby and texmfstart.rb or perl
# to use: make symbolic links to the names of ConTeXt and tetex scripts

what=`echo $0 | sed 's at .*/@@'`

case $what in
texmfstart|texexec|pstopdf|textools|texutil)
  p=`kpsewhich -format=texmfscripts $what.rb`
  { test -n "$p" && test -f "$p"; } \
   || { echo "\`$what.rb' not found."; exit 1; }
  export RUBYLIB="${RUBYLIB:-${p%/*}}"
  exec ruby "$p" ${1+"$@"}
  ;;
*) # epstopdf, ...
  q=`kpsewhich -format=texmfscripts $what.pl`
  { test -n "$q" && test -f "$q"; } \
   || { echo "\`$what.pl' not found."; exit 1; }
  exec perl "$q" ${1+"$@"}
  ;;
esac

For win32 there are batch files and stub programs (irun) to perform a
similar function for perl scripts. I haven't investigated for ruby
scripts since Kakuto's w32tex "just works" so far.

-- 
George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia


More information about the tex-live mailing list