aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/check.tpl
diff options
context:
space:
mode:
authorTadek Kijkowski <tkijkowski@gmail.com>2016-09-30 16:36:18 +0000
committerJeff Law <law@gcc.gnu.org>2016-09-30 10:36:18 -0600
commit716028e405fab6526e3580bd060f896bb3672681 (patch)
tree05fe6333f5ee57032bb8dc163aabf2e6c703115d /fixincludes/check.tpl
parentaf2d4873785d2638c293edf822b26d532d3201aa (diff)
downloadgcc-716028e405fab6526e3580bd060f896bb3672681.zip
gcc-716028e405fab6526e3580bd060f896bb3672681.tar.gz
gcc-716028e405fab6526e3580bd060f896bb3672681.tar.bz2
check.tpl: Convert line endings to unix on test outputs
2016-09-30 Tadek Kijkowski <tkijkowski@gmail.com> * check.tpl: Convert line endings to unix on test outputs * fixfixes.c: Fixed passing file name to apply_fix when SEPARATE_FIX_PROC is defined * fixincl.c: Use system_with_shell, fixes for MinGW and DJGPP * fixlib.c, fixlib.h: Added system_with_shell and fix_path_separators From-SVN: r240664
Diffstat (limited to 'fixincludes/check.tpl')
-rw-r--r--fixincludes/check.tpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/fixincludes/check.tpl b/fixincludes/check.tpl
index ffd2b66..4964208 100644
--- a/fixincludes/check.tpl
+++ b/fixincludes/check.tpl
@@ -123,6 +123,11 @@ exitok=`
exec < ${TESTDIR}/LIST
while read f
do
+ if [ -n "$MSYSTEM" -o -n "$DJGPP" ]
+ then
+ # On MinGW and DJGPP convert line endings to avoid false positives
+ mv $f $f.dos; tr -d '\r' < $f.dos > $f; rm $f.dos
+ fi
if [ ! -f ${TESTBASE}/$f ]
then
echo "Newly fixed header: $f" >&2