From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29811 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: calling texmfstart from perl in context distribution Date: Sun, 30 Jul 2006 15:09:12 -0700 Message-ID: <9D668055-8B2E-459B-90BE-2A985DC83531@cox.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154297458 24042 80.91.229.2 (30 Jul 2006 22:10:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2006 22:10:58 +0000 (UTC) Cc: Jacob Prystowsky Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 31 00:10:55 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 1G7JUq-0008HD-4a for gctc-ntg-context-518@m.gmane.org; Mon, 31 Jul 2006 00:10:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E9DD1FE05; Mon, 31 Jul 2006 00:10:51 +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 32106-03-3; Mon, 31 Jul 2006 00:10:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F9301FE0A; Mon, 31 Jul 2006 00:10:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4CB8D1FE0A for ; Mon, 31 Jul 2006 00:10:41 +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 32106-03-2 for ; Mon, 31 Jul 2006 00:10:38 +0200 (CEST) Original-Received: from fed1rmmtao11.cox.net (fed1rmmtao11.cox.net [68.230.241.28]) by ronja.ntg.nl (Postfix) with SMTP id 161311FE05 for ; Mon, 31 Jul 2006 00:10:37 +0200 (CEST) Original-Received: from [10.0.1.2] (really [70.191.56.23]) by fed1rmmtao11.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060730221036.EZNL554.fed1rmmtao11.cox.net@[10.0.1.2]>; Sun, 30 Jul 2006 18:10:36 -0400 Original-To: Context Mailing List List X-Mailer: Apple Mail (2.752.2) 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:29811 Archived-At: All, I have cdwincontext installed and I am trying to run texmfstart from a perl script on windows. I tried associating file extension .rb with the ruby that comes with the context distro. Am I missing something here? #!/usr/bin/perl use warnings; use strict; my $os; if ($^O =~ /darwin/i || $^O =~ /linux/i) { $os = 'nix'; } else { $os = 'win'; } my $TMS; if ($os eq 'nix') { $TMS='/usr/local/teTeX/share/texmf.local/scripts/context/ruby/ texmfstart.rb'; } elsif ($os eq 'win') { $TMS = 'c:\isoimage\usr\local\context\tex\texmf-local\scripts\context \ruby\texmfstart.rb'; } opendir my $dirH, '.'; while ($_ = readdir $dirH) { next if $_ =~ /^\.+/; next unless $_ =~ /^section\d+figs\.tex$/; for my $run ('first','second') { print "Processing file $_ ($run run)\n"; `$TMS texexec $_`; } } closedir $dirH;