This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Bug in startxwin.bat after installing with setup.exe in win98SE



> -----Original Message-----
> From: cygwin-xfree-owner@cygwin.com 
> [mailto:cygwin-xfree-owner@cygwin.com] On Behalf Of Harold L Hunt
> Sent: Saturday, 13 July 2002 6:38 AM
> To: cygwin-xfree@cygwin.com
> Subject: Re: Bug in startxwin.bat after installing with 
> setup.exe in win98SE
> 
> 
> Jehan <nahor@bravobrava.com> said:
> 
> > Harold L Hunt wrote:
> > > Okay, if you are so smart, explain to me how I can put a 
> drive letter into a
> > > batch file that is expected to work on computers where 
> Cygwin could be
> > > installed on ``c:\cygwin'' or ``d:\cygwin''?  I certainly 
> could not put ``c''
> > > as the drive, nor could I put ``d'' as the drive.  So, 
> what do you suggest?

I missed this the first time around.

What you need is a small sed script in your postinstall script. The sed
script can replace some symbol with the output from 'cygpath -w
/usr/X11/....'.

As for linefeed issues, AFAIK windows will process bat files with unix
format, but you could always use d2u in your script.

Additionally you need to make your package depend on the tools you use
in your script.

Rob


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