From: "Vincent Belaïche" <vincent.b.1@hotmail.fr>
To: <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Problem building emacs from CVS under MSWindow due to CR/LF and addsection
Date: Tue, 14 Oct 2008 07:01:46 +0200 [thread overview]
Message-ID: <BLU104-W12FFE9B4B0D920A4B31ADA84310@phx.gbl> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2400 bytes --]
Eli Zaretskii a écrit :
>> From: =?iso-8859-1?Q?Vincent_Bela=EFche?=
>> CC:
>> Date: Sun, 12 Oct 2008 21:09:46 +0200
>>
>> Actually, this $foo$ instead of foo$ does not seem to prevent building.
>> What really prevents building is the mixture of Unix and Dos end of line
>> in the makefile produced by configure.bat.
>>
>
> How is this related to the shell being used?
>
I launch `configure.bat' under cmd.exe
Then I launched `mingw32-make.exe -f makefile.woextractrlm bootstrap'
both under MSYS bash and under cmd.exe, and I get the same result in
both cases.
Note that changing the shell between configure and build is not an odd
idea of mine, but it is something that is kind of suggested as possible
in the nt/INSTALL file :
-----
from a Unixy shell prompt:
cmd /c configure.bat
-----
>
>> In the attachment I have put this makefile, as you can see there is a
>> mixture of DOS and Unix style EOL. When I build with `makefile' the
>> build fails very soon. Now I edited `makefile' into
>> `makefile.woextractrlm' to remove all extra CTRL-M and I tried to build
>> with `-f makefile.woextractrlm' option.
>>
>
> I always check-out the CVS tree with -kb option, and thus I never have
> these problems. Can you try that?
>
>
I will do this, and make you know
>> Maybe configure.bat could be fixed by testing if sed is present on the
>> machine, and by filtering all the problematic files
>> by some `sed s/\r$//g' command.
>>
>
> Most Windows ports of Sed will not do with this what you want, because
> they read input in "text" mode, where the CR characters are stripped
> by low-level library I/O routines and never show in the Sed pattern
> space.
>
>
>
I have just made a trial, and it works. I prepared a file temp.in.txt
with a mixture of DOSy and UNIXy EOLs, and I run the one-liner:
under unixy shell:
sed "s/\r?$//" temp.in.txt> unix.temp.ou.txt
under dos shell:
sed "s/\r?$//" temp.in.txt> dos.temp.ou.txt
After this, both unix.temp.ou.txt and dos.temp.ou.txt have a uniform end
of line. Please see the attached files.
>
>
_________________________________________________________________
Email envoyé avec Windows Live Hotmail. Dites adieux aux spam et virus, passez à Hotmail ! C'est gratuit !
http://www.windowslive.fr/hotmail/default.asp
[-- Attachment #1.2: Type: text/html, Size: 2776 bytes --]
[-- Attachment #2: temp.in.txt --]
[-- Type: application/octet-stream, Size: 195 bytes --]
-*- coding: iso-8859-1-unix -*-
Lines without CR
Lines without CR
Lines without CR
Lines without CR
Lines without CR
Lines with CR
Lines with CR
Lines with CR
Lines with CR
Lines with CR
[-- Attachment #3: unix.temp.ou.txt --]
[-- Type: application/octet-stream, Size: 206 bytes --]
-*- coding: iso-8859-1-unix -*-
Lines without CR
Lines without CR
Lines without CR
Lines without CR
Lines without CR
Lines with CR
Lines with CR
Lines with CR
Lines with CR
Lines with CR
[-- Attachment #4: dos.temp.ou.txt --]
[-- Type: application/octet-stream, Size: 204 bytes --]
-*- coding: iso-8859-1-unix -*-
Lines without CR
Lines without CR
Lines without CR
Lines without CR
Lines without CR
Lines with CR
Lines with CR
Lines with CR
Lines with CR
Lines with CR
next reply other threads:[~2008-10-14 5:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-14 5:01 Vincent Belaïche [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-10-20 18:33 Problem building emacs from CVS under MSWindow due to CR/LF and addsection Vincent Belaïche
2008-10-20 23:50 ` Eli Zaretskii
2008-10-19 19:13 Vincent Belaïche
2008-10-20 14:55 ` Eli Zaretskii
2008-10-12 19:09 Vincent Belaïche
2008-10-12 20:11 ` Eli Zaretskii
2008-10-12 22:21 ` Juanma Barranquero
2008-10-10 5:48 Vincent Belaiche
2008-10-10 7:58 ` Eli Zaretskii
2008-10-10 8:13 ` Juanma Barranquero
2008-10-10 9:00 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BLU104-W12FFE9B4B0D920A4B31ADA84310@phx.gbl \
--to=vincent.b.1@hotmail.fr \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).