Ignore CRLF vs LF for syntax error test check

This commit is contained in:
ISSOtm
2021-03-09 22:58:32 +01:00
parent e67254093e
commit 611bd46e0b

View File

@@ -62,10 +62,10 @@ fi
# Check whether to use '.simple.err' files if they exist # Check whether to use '.simple.err' files if they exist
# (rgbasm with pre-3.0 Bison just reports "syntax error") # (rgbasm with pre-3.0 Bison just reports "syntax error")
$RGBASM -Weverything -o $o syntax-error.asm > $output 2> $errput $RGBASM -Weverything -o $o syntax-error.asm > $output 2> $errput
cmp syntax-error.err $errput > /dev/null 2> /dev/null simple_error=0
simple_error=$? if ! diff --strip-trailing-cr syntax-error.err $errput; then
if [ "$simple_error" -eq 1 ]; then
echo "${bold}${orange}Warning: using .simple.err files when available.${rescolors}${resbold}" echo "${bold}${orange}Warning: using .simple.err files when available.${rescolors}${resbold}"
simple_error=1
fi fi
for i in *.asm; do for i in *.asm; do