🐛 fix(scripts): correct bat scripts

This commit is contained in:
csh 2025-12-23 13:45:15 +08:00
parent 180ca957b6
commit 95682e7925
1 changed files with 7 additions and 7 deletions

View File

@ -14,28 +14,28 @@ rem Notes:
rem - Snapshot is written to: <project-root>\docs\standards\playbook\
rem - Existing snapshot is backed up before overwrite.
set "SCRIPT_DIR=%~dp0"
for %%I in ("%SCRIPT_DIR%..") do set "SRC=%%~fI"
if "%~1"=="" goto Usage
if "%~1"=="-h" goto Usage
if "%~1"=="--help" goto Usage
set "DEST_ROOT=%~1"
shift
shift /1
set "LANGS="
if "%~1"=="--langs" (
set "LANGS=%~2"
shift
shift
shift /1
shift /1
) else (
set "LANGS=%*"
set "LANGS=%1 %2 %3 %4 %5 %6 %7 %8 %9"
)
if "%LANGS%"=="" set "LANGS=tsl"
set "LANGS=%LANGS:,= %"
set "SCRIPT_DIR=%~dp0"
for %%I in ("%SCRIPT_DIR%..") do set "SRC=%%~fI"
if not exist "%DEST_ROOT%" mkdir "%DEST_ROOT%"
for %%I in ("%DEST_ROOT%") do set "DEST_ROOT_ABS=%%~fI"