mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Ignore CRLF vs LF for syntax error test check
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user