# Auto detect text files and perform LF normalization
* text=auto

# Shell scripts must stay LF even on a Windows checkout: build_android.ps1
# runs them through WSL/Git Bash, scripts/build_xbox_uwp.sh REQUIRES Git Bash,
# and bash fails on CRLF with $'\r'.
#
# `scripts/*.sh` matched one level only, so everything under scripts/switch/
# and scripts/xbox-uwp/ was checked out CRLF and could not run at all -- which
# is what a Switch or Xbox build hit before it ever reached a compiler.  The
# `**` form covers the subdirectories.  After changing this, run:
#     git add --renormalize . && git commit -m "normalise shell scripts to LF"
*.sh text eol=lf
scripts/**/*.sh text eol=lf
build-rg34xxsp.sh text eol=lf
install-rg34xxsp.sh text eol=lf
mobile/android/gradlew text eol=lf
*.command text eol=lf

*.bat text eol=crlf
*.cmd text eol=crlf
