From a61a1114ae1464c39b54e88d1a30735c7daca4b2 Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Fri, 5 Oct 2012 21:43:45 +0200 Subject: [PATCH] tests: make LT_AT_HOST_DATA retain whitespace on MinGW Fixes issues with depdemo.at, f77demo.at and fcdemo.at. * tests/testsuite.at (LT_AT_HOST_DATA) [MinGW]: Keep leading and trailing spaces and tabs when converting line endings. --- tests/testsuite.at | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/testsuite.at b/tests/testsuite.at index 60ff5d5e9..2a55d042e 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -256,8 +256,7 @@ AT_CHECK([test -z "$leftovers"]) m4_define([LT_AT_HOST_DATA], [AT_DATA([$1], [$2]) case $host_os in mingw*) - while read -r l; do printf "%s\r\n" "$l"; done < $1 > $1.t - mv -f $1.t $1 ;; + awk '{printf ("%s\r\n", [$]0);}' < $1 > $1.t && mv -f $1.t $1 ;; esac]) -- 2.47.3