From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28037 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: First hack at new ruby-aware texexec script for linux/unix Date: Thu, 18 May 2006 10:09:34 +0200 Message-ID: <446C2BBE.7050000@wxs.nl> References: <22af238a0605171354h1b014bffp28c2822cbdca04be@mail.gmail.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 1147940030 948 80.91.229.2 (18 May 2006 08:13:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 May 2006 08:13:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu May 18 10:13:48 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 1Fgddg-0004Vy-Oi for gctc-ntg-context-518@m.gmane.org; Thu, 18 May 2006 10:13:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 45D48127C1; Thu, 18 May 2006 10:13:44 +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 09056-02; Thu, 18 May 2006 10:13:44 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7CBFB127B6; Thu, 18 May 2006 10:09:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0889A127B6 for ; Thu, 18 May 2006 10:09:32 +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 08833-06-2 for ; Thu, 18 May 2006 10:09:31 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id 3DAB112793 for ; Thu, 18 May 2006 10:09:31 +0200 (CEST) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 17601 for ; Thu, 18 May 2006 12:09:30 +0400 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Original-To: mailing list for ConTeXt users In-Reply-To: <22af238a0605171354h1b014bffp28c2822cbdca04be@mail.gmail.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:28037 Archived-At: gnwiii@gmail.com wrote: > This version runs the ruby scripts directly, rather than the suggested > form, e.g., "texfmstart pstopdf.rb file.ps". I have no idea if that > is intended to work -- it did in my very simple tests . I'm not sure > the RUBYLIB line is needed. > when you use texmfstart to launch a script, no rubylib is needed because libraries are loaded relative to the script; texmfstart itself (now) ships with the libraries that it needs embedded); when using the direct call (ruby /texexec as from your script) should work equally well the reason why i made texmfstart are: - we don't need stubs for all scripts, which is esp handy when scripts bare names that may conflict with other things in ones path - texmfstart internally uses kpsewhich to locate the script (unless it is configured to use its internal kpse library and/or talks to kpse server); it tries hard to cache and carry over results which (depending on the machine and trees uses - large trees slow down kpsewhich) means that nested runs are faster, e.g. when texmfstart is used to start texexec, a nested texexec run starts up faster) - another reason why i made texmfstart is that it makes me less dependent of changes in tds (the change from /context/scripts/ruby to scripts/context/ruby in combination with different kpsewhich fmt flags gave me so much trouble (read: i had to use different stubs depending on what version of tes and kpsewhich were used and they were not always in sync) that i decided that a consistent 'texmfstart ...' stub was safest for me - in the meantime texmfstart does a few more things, like tree initialixation and kpse expansion, think of: texmfstart xsltproc kpse:a.xsl --output=b.xml c.xml which will expand kpse: to the path as reported by kpsehwich. (here i use a mix: when running e.g. from other scripts or from editors i alwayss use "texmfstart scriptname" but when i run in the console i just use scriptname because windows can associate the .rb suffix with ruby (on unix one has to remove the suffix) it's all a matter of what suits best Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------