Re: Windows Line Endings

Roumen Petrov <[email protected]>
Newsgroups gmane.comp.gnu.libtool.patches
Message-ID <[email protected]>
Peter Rosin wrote:
> Hi Roumen,
>
> On 2012-10-07 11:37, Roumen Petrov wrote:
>> And now test fail in cross environment : linux for mingw host
> Thanks for the report!
>
> I have pushed this. Let me know if it doesn't help.

No comment.

Ralf wrote so good code I cannot understand any Peter's  patches.
Why you just don not use existing working fine macros ?


>  From 0f31e375104b00a181557d3809e556066b3d98b1 Mon Sep 17 00:00:00 2001
> From: Peter Rosin <[email protected]>
> Date: Mon, 8 Oct 2012 13:10:02 +0200
> Subject: [PATCH] tests: rerefix line ending problems on MinGW.
>
> The previous commit broke Linux->MinGW cross-compiling.
> Report by Roumen Petrov.
>
> * tests/mdemo.at: Normalize line endings after $EGREP.
>
> Signed-off-by: Peter Rosin <[email protected]>
> ---
>   tests/mdemo.at |   12 +++++++++---
>   1 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/tests/mdemo.at b/tests/mdemo.at
> index 48b7f63..4d70596 100644
> --- a/tests/mdemo.at
> +++ b/tests/mdemo.at
> @@ -824,7 +824,8 @@ int main (int argc, char **argv)
>   }
>   ]])
>
> -# Not using LT_AT_HOST_DATA below, since $EGREP normalizes line endings.
> +# Normalize line endings after $EGREP instead of using LT_AT_HOST_DATA
> +# here, since $EGREP *may* normalize line endings for us.
>   AT_DATA([expout],
>   [[Welcome to GNU libtool mdemo2!
>   module name: foo1
> @@ -849,9 +850,14 @@ LT_AT_CHECK_CONFIG([--with-included-ltdl])
>
>   LT_AT_MAKE
>
> -LT_AT_EXEC_CHECK([./mdemo2_static], 0, [expout], [],
> +LT_AT_EXEC_CHECK([./mdemo2_static], 0, [stdout], [],
>       [./foo1.la ./libfoo2.la | $EGREP -v '^module filename: '])
> -LT_AT_EXEC_CHECK([./mdemo2], 0, [expout], [],
> +LT_AT_UNIFY_NL([stdout])
> +LT_AT_CHECK([diff expout stdout])
> +
> +LT_AT_EXEC_CHECK([./mdemo2], 0, [stdout], [],
>       [./foo1.la ./libfoo2.la | $EGREP -v '^module filename: '])
> +LT_AT_UNIFY_NL([stdout])
> +LT_AT_CHECK([diff expout stdout])
>
>   AT_CLEANUP

Whats going with Ralf ..


Roumen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.