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.
This commit is contained in:
Peter Rosin 2012-10-05 21:43:45 +02:00
parent 22f57507c7
commit a61a1114ae

View File

@ -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])