]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: make LT_AT_HOST_DATA retain whitespace on MinGW
authorPeter Rosin <peda@lysator.liu.se>
Fri, 5 Oct 2012 19:43:45 +0000 (21:43 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Fri, 5 Oct 2012 19:43:45 +0000 (21:43 +0200)
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

index 60ff5d5e946ecc0461f2adf157a11f0b0f3b22ae..2a55d042ec8eafdf58298ff01a0eef9aec18cde0 100644 (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])