From: Peter Rosin Date: Fri, 5 Oct 2012 19:43:45 +0000 (+0200) Subject: tests: make LT_AT_HOST_DATA retain whitespace on MinGW X-Git-Tag: v2.4.2.418~143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a61a1114ae1464c39b54e88d1a30735c7daca4b2;p=thirdparty%2Flibtool.git 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. --- 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])