Changes between Version 1 and Version 2 of Ticket #1803


Ignore:
Timestamp:
11/21/12 09:54:28 (12 years ago)
Author:
martinl
Comment:

Replying to msieczka:

Are the Windows builds done on Linux? If so, I guess the root cause

winGRASS are built on Windows, of course - in MinGW/MSys environment.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1803 – Description

    v1 v2  
    1 Are the Windows builds done on Linux? If so, I guess the root cause
    21
    3 winGRASS are built on Windows, of course - in MinGW/MSys environment.
     2
     3There's a following error at GRASS 6.4.3RC1 startup in text mode on Win 7 64bit:
     4
     5{{{
     6C:\>"C:\Program Files (x86)\GRASS GIS 6.4.3RC1\grass64.bat" -text
     7The system cannot find the batch label specified - aftertextcheck
     8}}}
     9
     10The problem is in the etc\Init.bat where the "aftertextcheck" label is used - looks like Windows expects "\r\n" at the end of the label name rather than "\n".
     11
     12Are the Windows builds done on Linux? If so, I guess the root cause is eol-style=native on lib/init/init.bat in the GRASS repo. The solution would be to set eol-style=CRLF, or maybe to tweak the makefile to run tr/unix2dos/... on etc/Init.bat.
     13
     14Opinions?
     15
     16There are plenty of *.bat with LF instead of CRLF in the GRASS installation dir. Shouldn't they all have CRLF line endings?:
     17
     18{{{
     19$ cd '/c/Program Files (x86)/GRASS GIS 6.4.3RC1'
     20$ find . -type f -iname '*.bat' -print0 | xargs -0 grep -Ulv $'\r' | wc -l
     21112
     22}}}