ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <dwarnold45@cox.net>
Cc: Jacob Prystowsky <jmprystowsky@cox.net>
Subject: calling texmfstart from perl in context distribution
Date: Sun, 30 Jul 2006 15:09:12 -0700	[thread overview]
Message-ID: <9D668055-8B2E-459B-90BE-2A985DC83531@cox.net> (raw)

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;

             reply	other threads:[~2006-07-30 22:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-30 22:09 David Arnold [this message]
2006-07-30 23:28 ` Hans Hagen

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=9D668055-8B2E-459B-90BE-2A985DC83531@cox.net \
    --to=dwarnold45@cox.net \
    --cc=jmprystowsky@cox.net \
    --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).