# Note: patch "update GodotTools to .NET 10" should use CRLF line ending

abinfo "Patching godot ..."
for i in "$SRCDIR"/autobuild/patches/*; do
    abinfo "Applying $i ..."
    if [[ "$i" = *.binary ]]; then
        patch -Np1 --binary \
            -d "$SRCDIR" \
            -i "$i"
    else
        patch -Np1 \
            -d "$SRCDIR" \
            -i "$i"
    fi
done
