From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28908 Path: news.gmane.org!not-for-mail From: gnwiii@gmail.com Newsgroups: gmane.comp.tex.context Subject: Re: texmfstart newbie Date: Tue, 27 Jun 2006 18:07:04 -0300 Message-ID: <22af238a0606271407p735271c8q921becd646ff52b6@mail.gmail.com> References: <10800A51-BD3A-44F1-BA15-CD5BF6633216@cox.net> 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 1151442507 18428 80.91.229.2 (27 Jun 2006 21:08:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jun 2006 21:08:27 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 27 23:08:26 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 1FvKmC-0001Lc-On for gctc-ntg-context-518@m.gmane.org; Tue, 27 Jun 2006 23:07:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3E93F1282C; Tue, 27 Jun 2006 23:07:16 +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 31328-04; Tue, 27 Jun 2006 23:07:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4F7631280A; Tue, 27 Jun 2006 23:07:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 47F451280A for ; Tue, 27 Jun 2006 23:07:07 +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 31961-02-2 for ; Tue, 27 Jun 2006 23:07:05 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by ronja.ntg.nl (Postfix) with SMTP id 4749C12803 for ; Tue, 27 Jun 2006 23:07:05 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id k40so1752211ugc for ; Tue, 27 Jun 2006 14:07:04 -0700 (PDT) Original-Received: by 10.67.93.6 with SMTP id v6mr32729ugl; Tue, 27 Jun 2006 14:07:04 -0700 (PDT) Original-Received: by 10.67.103.2 with HTTP; Tue, 27 Jun 2006 14:07:04 -0700 (PDT) Original-To: "mailing list for ConTeXt users" In-Reply-To: <10800A51-BD3A-44F1-BA15-CD5BF6633216@cox.net> 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:28908 Archived-At: On 6/27/06, David Arnold wrote: > OK, > > I've updated to the latest context via Gerben's i-installer on my mac > osx 10.4.6. > > I have no idea what texmfstart is nor do I understand its purpose. > > I imagine the first thing I have to do is configure, because it is > certainly not found on my system. > > tmp $ which texmfstart > tmp $ texmfstart > -bash: texmfstart: command not found > > > Here is my path: > > tmp $ echo $PATH > /sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ > local/teTeX/bin/powerpc-apple-darwin-current:/opt/local/bin:/usr/ > local/mysql/bin:/usr/X11R6/bin > > For example: > > tmp $ texexec --version > > TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 > > texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 > texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 > tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5) > context : ver: 2006.06.23 20:39 > cont-en : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: > english > cont-nl : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: > dutch > > total run time : 3 seconds > > warning : use 'texmfstart texexec' instead > > > tmp $ which texexec > /usr/local/teTeX/bin/powerpc-apple-darwin-current/texexec > > Which appears to be some sort of shell script. Yes, it is a wrapper that uses kpsewhch to search for .pl and then fires up perl with the full path to the script. The same trick works for ruby (.rb) and java (.jar). I've made 3 scripts, called runtexmfXX, where XX={pl,rb,jar}: ----------------- 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. # 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 ---------- > [...] > Ruby is installed: > > tmp $ which ruby > /usr/bin/ruby > tmp $ ruby --version > ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] > > And here is the location of texmfstart: > > /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb > /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/texmfstart > /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/ > texmfstart/base > /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/ > texmfstart/base/kpse > > > Now for questions: > > 1. How do I configure my system to use texmstart? in the "bin" directory with texexec, rename texexec to texexec.orig, create the 2 or 3 scripts you want to use, do "chmod +x runtexmf*", and decide which names are perl (.pl) and which are ruby (.rb). Create symbolic links: "ln -s runtexmfrb texmfstart", etc. for the ruby scripts. You can also do this for other perl scripts such as epstopdf, but be careful, as the bin directory may contain newer versions than the texmf trees. > 2. What are some of the usual uses I should be employing of > texmfstart? How will it improve performance? How will it simplify my > work? Etc? I.e what are the advantages? Performance for scripts like this is not much af an issue these days -- if you want performance, buy better hardware. What is an issue is the ability of the developers to find and fix bugs. Perl is old and tricky. There are lots of old buggy perl versions installed. Hopefully ruby will turn out to be more robust (lessons learned, etc.). The advantages to us are that you will use it and report bugs before we do. The advantages to you are that Hans is replacing perl scripts with ruby scripts, so if you need a new feature it is more likely to appear as ruby than as perl code. -- George N. White III Head of St. Margarets Bay, Nova Scotia