ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: gnwiii@gmail.com
Subject: Re: Linux upgrade
Date: Wed, 5 Jul 2006 20:56:27 -0300	[thread overview]
Message-ID: <22af238a0607051656i393481bet71ba198fcc373bc2@mail.gmail.com> (raw)
In-Reply-To: <449BA9E2.60306@elvenkind.com>

On 6/23/06, Taco Hoekwater <taco@elvenkind.com> wrote:

> John R. Culleton wrote:
> >
> > Let me start all over. Assuming a working TeX installation
> > (either tetex or texlive 2005) what incantation must I perform to
> [...]
> After following those instructions, everything should be ok except
> for the new ruby script links and texmfstart's warning. For
> that, do the following:
>
>    * make sure you have ruby installed. If not, do that first
>
>    * go to the scripts/context/stubs/unix/ directory in your
>      freshly unpacked ConTeXt distribution, make sure you
>      have write permissions to the TeX binaries directory,
>      and run something like the shell script that follows.
> [...]

This script creates copies of the scripts and has to be run each time
the scripts are updated.
Whenever you make copies Murphy's law says the two versions will diverge.
I'd suggest creating wrapper scripts, one each for perl, ruby, and
java scripts in the directory with the texexec, etc. scripts as
follows:

   ----------------- runtexmfrb ----------------
#! /bin/sh
# runtexmfrb -- run ruby scripts with "ruby <path>texmfstart.rb .."
# Author: George N. White III <gnwiii@gmail.com>
# Date: 2006-06-25
# to use: link (ln -s) to the names of ConTeXt scripts in your tex bin
# directory, e.g.,
# cd <...>/bin/<arch>
# for f in texmfstart texexec pstopdf textools texutil ctxtools
pdftools rlxtools texsync ; do ln -s runtexmfrb $f ; done
#
# requires:
# ruby, sed, kpsewhich

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

p=`kpsewhich -format=texmfscripts texmfstart.rb`
{ test -n "$p" && test -f "$p"; } \
   || { echo "\`texmfstart.rb' not found."; exit 1; }

# for texmfstart just
case $what in
texmfstart)
exec ruby "$p" ${1+"$@"}
  ;;
*)
q=`kpsewhich -format=texmfscripts $what.rb`
{ test -n "$q" && test -f "$q"; } \
   || { echo "\`$what.rb' not found."; exit 1; }
exec ruby "$p" "$what.rb" ${1+"$@"}
 ;;
esac
   ----------------- end runtexmfrb ----------

   ----------------- runtexmfjar ----------------
#!/bin/sh
# runtexmfjar -- run texmf Java app
# Author: George N. White III <gnwiii@gmail.com>
# Date: 2006-06-25
# to use: link to the names of the apps:
# e.g., "ln -s runtexmfjar JabRef"

java=/usr/java/jre1.5.0/bin/java
what=`echo $0 | sed 's@.*/@@'`

p=`kpsewhich -format=texmfscripts $what.jar`
{ test -n "$p" && test -f "$p"; } \
  || { echo "\`$what.jar' not found."; exit 1; }
exec "$java" -jar "$p" ${1+"$@"}
   ----------------- end runtexmfjar ----------

   ----------------- runtexmfpl ----------------
#!/bin/sh
# runtexmfpl -- run texmf perl script
# to use: link to the names of the apps:
# e.g., "ln -s runtexmfpl epstopdf"

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

p=`kpsewhich -format=texmfscripts $what.pl`
{ test -n "$p" && test -f "$p"; } \
  || { echo "\`$what.pl' not found."; exit 1; }
exec perl "$p" ${1+"$@"}
   ----------------- end runtexmfpl ----------

The advantage of this approach is that you run the latest script
versions after a new cont-tmf is installed without having to copy
updated scripts to the "bin" directory.  I use runtexmfjar for
JabRef.jar, which lives in texmf-local/scripts.

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

  reply	other threads:[~2006-07-05 23:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22 23:18 John R. Culleton
2006-06-23  1:37 ` Aditya Mahajan
2006-06-23 14:17   ` John R. Culleton
2006-06-23 15:54     ` Aditya Mahajan
2006-06-23 17:19       ` Hans Hagen
2006-07-05 14:25         ` Aditya Mahajan
2006-06-23  8:44 ` Taco Hoekwater
2006-07-05 23:56   ` gnwiii [this message]
2006-07-11 10:23     ` Taco Hoekwater
2006-06-23  9:39 ` luigi scarso
2006-06-23 16:34 ` Peter Münster
2006-06-23 22:00   ` John R. Culleton
2006-06-23 22:48   ` John R. Culleton
2006-06-24  7:46     ` Peter Münster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22af238a0607051656i393481bet71ba198fcc373bc2@mail.gmail.com \
    --to=gnwiii@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).