Change CRLF line endings to LF to match the .gitattributes expectations. (#160557)

Closes https://github.com/flutter/flutter/issues/160529.
This commit is contained in:
Matan Lurey 2024-12-19 07:03:06 -08:00 committed by GitHub
parent b79ee9282c
commit ba01bab4b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,40 +1,40 @@
@ECHO off @ECHO off
REM Copyright 2013 The Flutter Authors. All rights reserved. REM Copyright 2013 The Flutter Authors. All rights reserved.
REM Use of this source code is governed by a BSD-style license that can be REM Use of this source code is governed by a BSD-style license that can be
REM found in the LICENSE file. REM found in the LICENSE file.
REM ---------------------------------- NOTE ---------------------------------- REM ---------------------------------- NOTE ----------------------------------
REM REM
REM Please keep the logic in this file consistent with the logic in the REM Please keep the logic in this file consistent with the logic in the
REM `et` script in the same directory to ensure that it continues to REM `et` script in the same directory to ensure that it continues to
REM work across all platforms! REM work across all platforms!
REM REM
REM -------------------------------------------------------------------------- REM --------------------------------------------------------------------------
SETLOCAL ENABLEDELAYEDEXPANSION SETLOCAL ENABLEDELAYEDEXPANSION
FOR %%i IN ("%~dp0..\..") DO SET SRC_DIR=%%~fi FOR %%i IN ("%~dp0..\..") DO SET SRC_DIR=%%~fi
REM Test if Git is available on the Host REM Test if Git is available on the Host
where /q git || ECHO Error: Unable to find git in your PATH. && EXIT /B 1 where /q git || ECHO Error: Unable to find git in your PATH. && EXIT /B 1
SET repo_dir=%SRC_DIR%\flutter SET repo_dir=%SRC_DIR%\flutter
SET engine_tool_dir=%repo_dir%\tools\engine_tool SET engine_tool_dir=%repo_dir%\tools\engine_tool
REM Determine which platform we are on and use the right prebuilt Dart SDK REM Determine which platform we are on and use the right prebuilt Dart SDK
IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" ( IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
SET dart_sdk_path=%SRC_DIR%\flutter\prebuilts\windows-x64\dart-sdk SET dart_sdk_path=%SRC_DIR%\flutter\prebuilts\windows-x64\dart-sdk
) ELSE IF "%PROCESSOR_ARCHITECTURE%"=="ARM64" ( ) ELSE IF "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
SET dart_sdk_path=%SRC_DIR%\flutter\prebuilts\windows-arm64\dart-sdk SET dart_sdk_path=%SRC_DIR%\flutter\prebuilts\windows-arm64\dart-sdk
) ELSE ( ) ELSE (
ECHO "Windows x86 (32-bit) is not supported" && EXIT /B 1 ECHO "Windows x86 (32-bit) is not supported" && EXIT /B 1
) )
SET dart=%dart_sdk_path%\bin\dart.exe SET dart=%dart_sdk_path%\bin\dart.exe
cd "%engine_tool_dir%" cd "%engine_tool_dir%"
REM Do not use the CALL command in the next line to execute Dart. CALL causes REM Do not use the CALL command in the next line to execute Dart. CALL causes
REM Windows to re-read the line from disk after the CALL command has finished REM Windows to re-read the line from disk after the CALL command has finished
REM regardless of the ampersand chain. REM regardless of the ampersand chain.
"%dart%" bin\et.dart %* & exit /B !ERRORLEVEL! "%dart%" bin\et.dart %* & exit /B !ERRORLEVEL!