This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: texinfo-4.0-3 (was RE: texinfo-4.0-2)


Hi,

My guess is it has something to do with the O_BINARY setting which
invalidates the generated info.exe for use with INFOPATH set to a DOS-like
path.  The trouble is that NTemacs cannot handle the cygwin style INFOPATH.
I solved it by hiding the info.exe behind the following Perl script info.pl:

-----8<-----
#!D:/Perl/bin/Perl.exe

## info.pl - adjust Windows style INFOPATH environment variable to Unix
style
#            then call the real info program to process the arguments

$ENV{INFOPATH} =~ s/;$//;		 # drop trailing semi-colon if any
chomp($ENV{INFOPATH} = `cygpath --unix --path $ENV{INFOPATH}`);
@args = ('c:\cygwin\bin\info.exe', @ARGV);
system(@args);
-----8<-----

I had to use a similar trick for man, apropos, whatis, and makewhatis (to
convert MANPATH).

Cheers,
Karel

--
Karel Sprenger, senior solution specialist
COMPAQ, Professional Services
Mobile: +31 (6) 5178 5034           Home: +31 (20) 670 0942
E-mail: karel.sprenger@compaq.com   Private: cjas@xs4all.nl
"The best way to have a good idea is to have lots of ideas." - Linus
Pauling


> -----Original Message-----
> From: Sprenger, Karel 
> Sent: Tuesday, November 28, 2000 10:24
> To: 'Town, Brad'; 'cygwin@cygwin.com'
> Subject: texinfo-4.0-3 (was RE: texinfo-4.0-2)
> 
> 
> Hi again,
> 
> When looking for the texinfo source, I found texinfo-4.0-3 is 
> now available
> (at least on the ftp.sunsite.utk.edu mirror).  The info in 
> that distribution
> works well again, i.e., it processes all directories in
> INFOPATH=/emacs/info:/usr/info:/usr/local/info.  
> 
> Oops! It is still not entirely correct as in a CMD box with 
> INFOPATH set to
> c:/emacs/info;c:/cygwin/usr/info;c:/usr/local/info, it skips the first
> directory and processes the remaining two in reverse order.
> 
> I think I'll have a look at the source.
> 
> Cheers,
> Karel
> 
> --
> Karel Sprenger, senior solution specialist
> COMPAQ, Professional Services
> Mobile: +31 (6) 5178 5034           Home: +31 (20) 670 0942
> E-mail: karel.sprenger@compaq.com   Private: cjas@xs4all.nl
> "The best way to have a good idea is to have lots of ideas." - Linus
> Pauling
> 
> 
> > -----Original Message-----
> > From: Sprenger, Karel 
> > Sent: Tuesday, November 28, 2000 09:02
> > To: 'Town, Brad'; 'cygwin@cygwin.com'
> > Subject: RE: texinfo-4.0-2
> > 
> > 
> > Hi,
> > 
> > Just noted that the info in texinfo-4.0-2 works in a CMD box 
> > with INFOPATH
> > set to c:/emacs/info;c:/cygwin/usr/info;c:/usr/local/info, 
> > but only looks
> > into /usr/info when run in a bash shell.  So maybe you should 
> > concentrate on
> > what info does with the INFOPATH variable.
> > 
> > Cheers,
> > Karel
> > 
> > --
> > Karel Sprenger, senior solution specialist
> > COMPAQ, Professional Services
> > Mobile: +31 (6) 5178 5034           Home: +31 (20) 670 0942
> > E-mail: karel.sprenger@compaq.com   Private: cjas@xs4all.nl
> > "The best way to have a good idea is to have lots of ideas." - Linus
> > Pauling
> >  
> > 
> > > -----Original Message-----
> > > From: Town, Brad [mailto:btown@ceddec.com]
> > > Sent: Monday, November 27, 2000 18:38
> > > To: 'cygwin@cygwin.com'
> > > Subject: RE: texinfo-4.0-2
> > > 
> > > 
> > > > The cygwin build of texinfo (texinfo-4.0-2) doesn't look in 
> > > > /usr/local/info.
> > > > However, a quick rebuild of the source (obtained by clicking 
> > > > on the Source
> > > > checkbox during setup) works correctly.
> > > 
> > > Oops, still doesn't work.  I'm looking into it.
> > > 
> > > Brad Town
> > > 
> > > --
> > > Want to unsubscribe from this list?
> > > Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> > > 
> > 
> > --
> > Want to unsubscribe from this list?
> > Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> > 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]