From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29163 Path: news.gmane.org!not-for-mail From: gnwiii@gmail.com Newsgroups: gmane.comp.tex.context Subject: Re: Linux upgrade Date: Wed, 5 Jul 2006 20:56:27 -0300 Message-ID: <22af238a0607051656i393481bet71ba198fcc373bc2@mail.gmail.com> References: <200606221918.07473.john@wexfordpress.com> <449BA9E2.60306@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1152143807 19247 80.91.229.2 (5 Jul 2006 23:56:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2006 23:56:47 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 06 01:56:45 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FyHEW-0003kN-6j for gctc-ntg-context-518@m.gmane.org; Thu, 06 Jul 2006 01:56:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 04397127B3; Thu, 6 Jul 2006 01:56:40 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31192-02; Thu, 6 Jul 2006 01:56:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 47BEB12796; Thu, 6 Jul 2006 01:56:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FF4D12796 for ; Thu, 6 Jul 2006 01:56:31 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30998-05 for ; Thu, 6 Jul 2006 01:56:28 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by ronja.ntg.nl (Postfix) with SMTP id 1A1041277E for ; Thu, 6 Jul 2006 01:56:27 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id k40so1942428ugc for ; Wed, 05 Jul 2006 16:56:27 -0700 (PDT) Original-Received: by 10.67.19.13 with SMTP id w13mr55400ugi; Wed, 05 Jul 2006 16:56:27 -0700 (PDT) Original-Received: by 10.67.103.2 with HTTP; Wed, 5 Jul 2006 16:56:27 -0700 (PDT) Original-To: "mailing list for ConTeXt users" In-Reply-To: <449BA9E2.60306@elvenkind.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29163 Archived-At: On 6/23/06, Taco Hoekwater 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 texmfstart.rb .." # Author: George N. White III # Date: 2006-06-25 # to use: link (ln -s) to the names of ConTeXt scripts in your tex bin # directory, e.g., # cd <...>/bin/ # 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 # 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 Head of St. Margarets Bay, Nova Scotia