configure has CRLF
Dave Silvia
dsilvia at mchsi.com
Mon Dec 4 06:16:40 PST 2006
Hi!
As it turns out, it's relatively simple to find out what the user expects from
their Cygwin installation and install wxWidgets scripts accordingly. The choice
is revealed/set by the mount command in Cygwin:
$ mount
C:\cygwin\bin on /usr/bin type system (textmode)
C:\cygwin\lib on /usr/lib type system (textmode)
C:\cygwin on / type system (textmode)
c: on /cygdrive/c type system (textmode,noumount)
d: on /cygdrive/d type system (textmode,noumount)
The key, then, is to determine where they are installing wxWidgets, find that
mount point, and copy the scripts accordingly. For example, the typical (maybe)
installation might be under C:\cygwin\usr\local\wxWidgets-2.8.0. Find it's mount
point:
$ df /usr/local
Filesystem 1K-blocks Used Available Use% Mounted on
C:\cygwin 38588096 22648544 15939552 59% /
This being the case, a suitable filter can be written to get whether the mounted
system that wxWidgets is being installed on is "textmode" or "binmode".
As an example:
#!/bin/sh
#actual value could be passed in as a variable,
#gotten from the environment,
#taken from a command (e.g., `pwd`),
#etc.
mntPnt="/usr/local"
theMnt=`df $mntPnt | grep ' /'`
theMode=`mount | grep ' on '${theMnt}' ' | awk '{print $NF} `
textMode=`echo $theMode | grep 'textmode'`
binMode=`echo $theMode | grep 'binmode'`
if [ ! -z "$textMode" ]
then
# copy the CRLF versions
elif ] ! -z "$binMode" ]
then
# copy the LF versions
fi
thx,
Dave S.
wxMS_developers · Development with wxWidgets on MSWindows
http://tech.groups.yahoo.com/group/wxMS_developers/join
wxMS_developers RSS feed
http://rss.groups.yahoo.com/group/wxMS_developers/rss
wxWidgets Code Exchange
http://wxcodex.net/
-- On Mon, 04 Dec 2006 09:33:40 +0000 chris elliott wrote --
> yes , it would be a good idea, as msys doesn't care about rhe line
> endings bu cywin does
>
> chris
>
> Michael Wetherell wrote:
>> On Monday 04 Dec 2006 06:05, Dave & Diane wrote:
>>> The filesystem I install wxWidgets on is a binary filesystem.
>>> The recent versions of bash in cygwin have problems running
>>> scripts with CRLF in them if they are on a binary filesystem.
>>>
>>
>> Yes I've come across this problem too.
>>
>>> Running these three scripts through d2u (dos 2 unix) solves the
>>> problem removing the CR, but I wonder if they should even be
>>> shipping with CRLF?
>>>
>>
>> I think you're right, it would be better if the unix files didn't
>> have dos line endings.
>>
>> Regards,
>> Mike
>>
>> ------------------------------------------------------------------
>> --- To unsubscribe, e-mail: wx-users-
>> unsubscribe at lists.wxwidgets.org For additional commands, e-mail:
>> wx-users-help at lists.wxwidgets.org
>>
>>
> --------------------------------------------------------------------
> - To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
More information about the wx-users
mailing list