chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
REM -- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
REM -- SPDX-License-Identifier: Apache-2.0 OR ISC
@echo off
set "ScriptDir=%~dp0"
set "ScriptDir=%ScriptDir:~0,-1%"
:loop
set "arg1=%~1"
if "%arg1%"=="-o" goto end
if "%arg1%"=="" goto failure
shift
goto loop
:end
shift
set "path=%~1"
for %%f in ("%path%") do set "filename=%%~nxf"
REM Extract the base filename before the first dot, similar to the shell script
for /f "tokens=1 delims=." %%a in ("%filename%") do set "basename=%%a"
copy "%ScriptDir%\prebuilt-nasm\%basename%.obj" "%path%"
exit 0
:failure
echo PATH: %path% 1>&2
echo FILENAME: %filename% 1>&2
echo ScriptDir: %ScriptDir% 1>&2
exit 1