Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-08 Thread Taco Hoekwater

Vit Zyka wrote:
Taco Hoekwater wrote:
Here is a very small script. Save to a file and run texmfstart on it.
texmfstart does not inherit @INC array?
So it would seem... that makes no sense? There is an environment passed
on, though, and PATH does not look crippled, so my guess that there was
a problem with %ENV was obviously wrong.
I do not have a Windows machine to do further testing, sorry.
Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-08 Thread Vit Zyka
Taco Hoekwater wrote:
Vit Zyka wrote:
Hans Hagen wrote:
Problem occures when I run perl via texmfstart. And since it is exe on 
win I do not known how and with which environment is the Perl called 
inside.

Here is a very small script. Save to a file and run texmfstart on it.
# envtest.pl
map { print "INC .= $_\n" } @INC;
map { print "$_ = $ENV{$_}\n"; } keys %ENV;
Toco, my result is:
-
INC .= .
USERPROFILE = D:\Documents and Settings\vit
HOMEDRIVE = D:
TEMP = D:\DOCUME~1\vit\LOCALS~1\Temp
SYSTEMDRIVE = D:
PROCESSOR_REVISION = 060a
OS2LIBPATH = D:\WINNT\system32\os2\dll;
SYSTEMROOT = D:\WINNT
COMMONPROGRAMFILES = D:\Program Files\Common Files
COMSPEC = D:\WINNT\system32\cmd.exe
LOGONSERVER = \\SPEKOUN
APPDATA = D:\Documents and Settings\vit\Application Data
WINDIR = D:\WINNT
PROGRAMFILES = D:\Program Files
OS = Windows_NT
PROCESSOR_LEVEL = 6
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
MATLAB = D:\Program Files\matlab
USERNAME = vit
PROMPT = $P$G
NUMBER_OF_PROCESSORS = 1
HOMEPATH = \Documents and Settings\vit
PATH = 
C:\programs\ImageMagick-6.1.6\VisualMagick\bin;C:\programs\gs\gs8.14\bin;
D:\Perl\bin\;D:\WINNT\system32;D:\WINNT;D:\WINNT\System32\Wbem;C:\TeXLive\bin\wi
n32;D:\Program Files\Common 
Files\GTK\2.0\bin;D:\bin;c:\programs\matlab\bin;d:\v
it\perl;C:\programs\libs\netcdf\bin;L:\bin
PROCESSOR_IDENTIFIER = x86 Family 6 Model 6 Stepping 10, GenuineIntel
USERDOMAIN = SPEKOUN
COMPUTERNAME = SPEKOUN
ALLUSERSPROFILE = D:\Documents and Settings\All Users.WINNT
PROCESSOR_ARCHITECTURE = x86
TMP = D:\DOCUME~1\vit\LOCALS~1\Temp
TEXMFSTART.ENVTEST = ./envtest.pl
--

but running 'perl envtest.pl'
--
INC .= D:/Perl/lib
INC .= D:/Perl/site/lib
INC .= .
...
texmfstart does not inherit @INC array?
Vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-08 Thread Taco Hoekwater

Vit Zyka wrote:
Hans Hagen wrote:
Problem occures when I run perl via texmfstart. And since it is exe on 
win I do not known how and with which environment is the Perl called 
inside.
Here is a very small script. Save to a file and run texmfstart on it.
# envtest.pl
map { print "INC .= $_\n" } @INC;
map { print "$_ = $ENV{$_}\n"; } keys %ENV;
Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-08 Thread Vit Zyka
Hans Hagen wrote:
Vit Zyka wrote:
Can't locate strict.pm in @INC (@INC contains: .) at 
c:/TeXLive/texmf-experim/sc
ripts/context/perl/texexec.pl line 35.
BEGIN failed--compilation aborted at 
c:/TeXLive/texmf-experim/scripts/context/pe
rl/texexec.pl line 35.
can you update your perl installation? strict.pm should be in there
I think the problem is not in absence of strict.pm in my (not so old - 
summer 04) Perl distr. It is present in lib/strict.pm I can use strict 
in my scripts as well ;-)

Problem occures when I run perl via texmfstart. And since it is exe on 
win I do not known how and with which environment is the Perl called inside.

More over, you are using strict in texexec.pl atc., and both it works well:
texexec.exe file.tex
perl texexec.pl file.tex
VZ
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-08 Thread Hans Hagen
Vit Zyka wrote:
Can't locate strict.pm in @INC (@INC contains: .) at 
c:/TeXLive/texmf-experim/sc
ripts/context/perl/texexec.pl line 35.
BEGIN failed--compilation aborted at 
c:/TeXLive/texmf-experim/scripts/context/pe
rl/texexec.pl line 35.
can you update your perl installation? strict.pm should be in there
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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-08 Thread Vit Zyka
Hans Hagen wrote:
Vit Zyka wrote:
? Something like:
  texmfstart --autopdf latin.pdf
  texmfstart texexec.pl --pdf --format=cont-cz latin.tex

texmfstart texexec --pdf --autopdf --interface=cz latin
The same problem with paths:
texmfstart texexec --pdf --autopdf --format=cont-cz latin
Can't locate strict.pm in @INC (@INC contains: .) at 
c:/TeXLive/texmf-experim/sc
ripts/context/perl/texexec.pl line 35.
BEGIN failed--compilation aborted at 
c:/TeXLive/texmf-experim/scripts/context/pe
rl/texexec.pl line 35.

VZ
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-08 Thread Hans Hagen
Vit Zyka wrote:
? Something like:
  texmfstart --autopdf latin.pdf
  texmfstart texexec.pl --pdf --format=cont-cz latin.tex
texmfstart texexec --pdf --autopdf --interface=cz latin
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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-08 Thread Vit Zyka
Hans Hagen wrote:
Vit Zyka wrote:
example  : texmfstart pstopdf.rb cow.eps
   texmfstart --locate examplex.rb
   texmfstart --execute examplex.rb
   texmfstart --browser examplap.pdf
   texmfstart showcase.pdf
   texmfstart --page=2 --file=showcase.pdf
   texmfstart --program=yourtex yourscript.pl arg-1 arg-2
   texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml
   texmfstart bin:xsltproc kpse:somefile.xsl somefile.xml
   texmfstart --iftouched=normal,lowres downsample.rb normal 
lowres
Hmmm. What exactly 'texmfstart showcase.pdf' does? It starts something 
(AR?) shows nothing and after that freezed my Win2K Command Prompt.
Ohh, there was some terrible state of AR. After closing AR  it works now.
Is there some way how to close doc being opened in AR when running 
texexec?
--autopdf should do that (make sure that the first time you do that, the 
doc os closed)
? Something like:
  texmfstart --autopdf latin.pdf
  texmfstart texexec.pl --pdf --format=cont-cz latin.tex
but starting Perl with this way makes wrong with .pm paths, please see 
log bellow. Running

  perl c:\TeXLive\texmf-experim\scripts\context\perl\texexec.pl --pdf 
--format=cont-cz latin.tex

directly (Active Perl distr) is OK.
Vit Zyka

V:\tex\zk\context\font>texmfstart texexec.pl --pdf --format=cont-cz 
latin.tex
Can't locate strict.pm in @INC (@INC contains: .) at 
c:/TeXLive/texmf-experim/sc
ripts/context/perl/texexec.pl line 35.
BEGIN failed--compilation aborted at 
c:/TeXLive/texmf-experim/scripts/context/pe
rl/texexec.pl line 35.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-07 Thread Hans Hagen
Vit Zyka wrote:
example  : texmfstart pstopdf.rb cow.eps
   texmfstart --locate examplex.rb
   texmfstart --execute examplex.rb
   texmfstart --browser examplap.pdf
   texmfstart showcase.pdf
   texmfstart --page=2 --file=showcase.pdf
   texmfstart --program=yourtex yourscript.pl arg-1 arg-2
   texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml
   texmfstart bin:xsltproc kpse:somefile.xsl somefile.xml
   texmfstart --iftouched=normal,lowres downsample.rb normal 
lowres

Hmmm. What exactly 'texmfstart showcase.pdf' does? It starts something 
(AR?) shows nothing and after that freezed my Win2K Command Prompt.
on windows, it opens the document in acrobat (in the browser if --browser is 
given); so, i wonder what goes wrong

Is there some way how to close doc being opened in AR when running texexec?
--autopdf should do that (make sure that the first time you do that, the doc os 
closed)

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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-07 Thread Vit Zyka
example  : texmfstart pstopdf.rb cow.eps
   texmfstart --locate examplex.rb
   texmfstart --execute examplex.rb
   texmfstart --browser examplap.pdf
   texmfstart showcase.pdf
   texmfstart --page=2 --file=showcase.pdf
   texmfstart --program=yourtex yourscript.pl arg-1 arg-2
   texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml
   texmfstart bin:xsltproc kpse:somefile.xsl somefile.xml
   texmfstart --iftouched=normal,lowres downsample.rb normal lowres
Hmmm. What exactly 'texmfstart showcase.pdf' does? It starts something 
(AR?) shows nothing and after that freezed my Win2K Command Prompt.

Is there some way how to close doc being opened in AR when running texexec?
Vit Zyka
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-07 Thread Thomas A . Schmitz
Thanks for clearing this up. I was looking into texmfstart for 
precisely this reason: I have a linux (gentoo) system on another 
partition of my OS X box, and even though everything is exactly the 
same (except the binaries, of course), I always get "texexec.pl not 
found" when I run "texexec something." When I invoke "perl 
DARNED_LONG_PATH_TO_TEXEXEC.PL something," everything works. TEXMF.CNF 
and diretory structure is identical. Well, no big deal, I'll replace 
the texexec stub like you suggested.

All best
Thomas
On Feb 6, 2005, at 11:19 PM, h h extern wrote:
Thomas A.Schmitz wrote:
True, but that's not what mtexmfstart.pdf says...
if one uses texmfstart, you only need to set the permission of 
texmfstart in the  bin path; nowadays, my calls to script in the bin 
paths look like:

texexec ->
#!/bin/sh
texmfstart texexec.pl $@
that way i'm independent of anything funny that will happen with 
kpsewhich (since i only need to adapt texmfstart); think of recent 
changes in the script path and scriptpath location method;

btw, you can use texmfstart for more things, like
  texmfstart --direct scite kpse:texmf.cnf
this will launch scite and open the texmf.cnf file used by your 
current installation.

>texmfstart
version  : 1.5.2 - 2003/2004 - www.pragma-ade.com
usage: texmfstart [switches] filename [optional arguments]
switches : --verbose --report --browser --direct --execute --locate
   --program --file   --page--arguments
   --make--lmake  --wmake
example  : texmfstart pstopdf.rb cow.eps
   texmfstart --locate examplex.rb
   texmfstart --execute examplex.rb
   texmfstart --browser examplap.pdf
   texmfstart showcase.pdf
   texmfstart --page=2 --file=showcase.pdf
   texmfstart --program=yourtex yourscript.pl arg-1 arg-2
   texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml
   texmfstart bin:xsltproc kpse:somefile.xsl somefile.xml
   texmfstart --iftouched=normal,lowres downsample.rb normal 
lowres

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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-07 Thread h h extern
Thomas A.Schmitz wrote:
I'm wondering if this is a bug: I tried to play around with the 
texmfstart script, but couldn't get it to work. I think the latest 
cont-tmf.zip installs those files with wrong permissions. Here's what I 
got:

-rw-r--r--1 tas   15k Jan  6 13:41 concheck.rb
-rw-r--r--1 tas   25k Jan 28 09:28 ctxtools.rb
drwxr-xr-x3 tas   102 Feb  6 21:00 exa
-rw-r--r--1 tas   21k Dec 20 21:31 texmfstart.rb
-rw-r--r--1 tas  6.5k Jun 14  2004 texsync.rb
-rw-r--r--1 tas   23k Oct 15 19:15 textools.rb
-rw-r--r--1 tas   13k Oct 27 18:27 xmltools.rb
drwxr-xr-x3 tas   102 Feb  6 21:00 xmpl
same is true for scripts/perl/ Shouldn't they all have permission 755?
i generate the zips on my windows, so there are no such permissions present in 
the zip; here, on linux, i just do a

  chmod -R 755 *
in the tex root path; after that, when updating, the permissions stay okay. Of 
course one can limit the x flag to the bin path, but i'm not that picky on 
permissions -)

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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-07 Thread h h extern
Thomas A.Schmitz wrote:
True, but that's not what mtexmfstart.pdf says...
if one uses texmfstart, you only need to set the permission of texmfstart in the 
 bin path; nowadays, my calls to script in the bin paths look like:

texexec ->
#!/bin/sh
texmfstart texexec.pl $@
that way i'm independent of anything funny that will happen with kpsewhich 
(since i only need to adapt texmfstart); think of recent changes in the script 
path and scriptpath location method;

btw, you can use texmfstart for more things, like
  texmfstart --direct scite kpse:texmf.cnf
this will launch scite and open the texmf.cnf file used by your current 
installation.

>texmfstart
version  : 1.5.2 - 2003/2004 - www.pragma-ade.com
usage: texmfstart [switches] filename [optional arguments]
switches : --verbose --report --browser --direct --execute --locate
   --program --file   --page--arguments
   --make--lmake  --wmake
example  : texmfstart pstopdf.rb cow.eps
   texmfstart --locate examplex.rb
   texmfstart --execute examplex.rb
   texmfstart --browser examplap.pdf
   texmfstart showcase.pdf
   texmfstart --page=2 --file=showcase.pdf
   texmfstart --program=yourtex yourscript.pl arg-1 arg-2
   texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml
   texmfstart bin:xsltproc kpse:somefile.xsl somefile.xml
   texmfstart --iftouched=normal,lowres downsample.rb normal lowres
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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-06 Thread Thomas A . Schmitz
True, but that's not what mtexmfstart.pdf says...
On Feb 6, 2005, at 9:14 PM, VnPenguin wrote:
On Sun, 6 Feb 2005 21:06:21 +0100, Thomas A. Schmitz
<[EMAIL PROTECTED]> wrote:
I'm wondering if this is a bug: I tried to play around with the
texmfstart script, but couldn't get it to work. I think the latest
cont-tmf.zip installs those files with wrong permissions. Here's what 
I
got:

-rw-r--r--1 tas   15k Jan  6 13:41 concheck.rb
-rw-r--r--1 tas   25k Jan 28 09:28 ctxtools.rb
drwxr-xr-x3 tas   102 Feb  6 21:00 exa
-rw-r--r--1 tas   21k Dec 20 21:31 texmfstart.rb
-rw-r--r--1 tas  6.5k Jun 14  2004 texsync.rb
-rw-r--r--1 tas   23k Oct 15 19:15 textools.rb
-rw-r--r--1 tas   13k Oct 27 18:27 xmltools.rb
drwxr-xr-x3 tas   102 Feb  6 21:00 xmpl
same is true for scripts/perl/ Shouldn't they all have permission 755?
Not need IMHO if you run the script by using "perl script.pl". The
same for ruby :)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-06 Thread VnPenguin
On Sun, 6 Feb 2005 21:06:21 +0100, Thomas A. Schmitz
<[EMAIL PROTECTED]> wrote:
> I'm wondering if this is a bug: I tried to play around with the
> texmfstart script, but couldn't get it to work. I think the latest
> cont-tmf.zip installs those files with wrong permissions. Here's what I
> got:
> 
> -rw-r--r--1 tas   15k Jan  6 13:41 concheck.rb
> -rw-r--r--1 tas   25k Jan 28 09:28 ctxtools.rb
> drwxr-xr-x3 tas   102 Feb  6 21:00 exa
> -rw-r--r--1 tas   21k Dec 20 21:31 texmfstart.rb
> -rw-r--r--1 tas  6.5k Jun 14  2004 texsync.rb
> -rw-r--r--1 tas   23k Oct 15 19:15 textools.rb
> -rw-r--r--1 tas   13k Oct 27 18:27 xmltools.rb
> drwxr-xr-x3 tas   102 Feb  6 21:00 xmpl
> 
> same is true for scripts/perl/ Shouldn't they all have permission 755?
> 
Not need IMHO if you run the script by using "perl script.pl". The
same for ruby :)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] permissions in texmf/scripts/context/*

2005-02-06 Thread Thomas A . Schmitz
I'm wondering if this is a bug: I tried to play around with the 
texmfstart script, but couldn't get it to work. I think the latest 
cont-tmf.zip installs those files with wrong permissions. Here's what I 
got:

-rw-r--r--1 tas   15k Jan  6 13:41 concheck.rb
-rw-r--r--1 tas   25k Jan 28 09:28 ctxtools.rb
drwxr-xr-x3 tas   102 Feb  6 21:00 exa
-rw-r--r--1 tas   21k Dec 20 21:31 texmfstart.rb
-rw-r--r--1 tas  6.5k Jun 14  2004 texsync.rb
-rw-r--r--1 tas   23k Oct 15 19:15 textools.rb
-rw-r--r--1 tas   13k Oct 27 18:27 xmltools.rb
drwxr-xr-x3 tas   102 Feb  6 21:00 xmpl
same is true for scripts/perl/ Shouldn't they all have permission 755?
Best
Thomas
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context