🐛 fix(scripts): correct bat scripts
This commit is contained in:
parent
4881feb328
commit
064aa9262c
|
|
@ -14,28 +14,28 @@ rem Notes:
|
||||||
rem - Snapshot is written to: <project-root>\docs\standards\playbook\
|
rem - Snapshot is written to: <project-root>\docs\standards\playbook\
|
||||||
rem - Existing snapshot is backed up before overwrite.
|
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"=="" goto Usage
|
||||||
if "%~1"=="-h" goto Usage
|
if "%~1"=="-h" goto Usage
|
||||||
if "%~1"=="--help" goto Usage
|
if "%~1"=="--help" goto Usage
|
||||||
|
|
||||||
set "DEST_ROOT=%~1"
|
set "DEST_ROOT=%~1"
|
||||||
shift
|
shift /1
|
||||||
|
|
||||||
set "LANGS="
|
set "LANGS="
|
||||||
if "%~1"=="--langs" (
|
if "%~1"=="--langs" (
|
||||||
set "LANGS=%~2"
|
set "LANGS=%~2"
|
||||||
shift
|
shift /1
|
||||||
shift
|
shift /1
|
||||||
) else (
|
) else (
|
||||||
set "LANGS=%*"
|
set "LANGS=%1 %2 %3 %4 %5 %6 %7 %8 %9"
|
||||||
)
|
)
|
||||||
|
|
||||||
if "%LANGS%"=="" set "LANGS=tsl"
|
if "%LANGS%"=="" set "LANGS=tsl"
|
||||||
set "LANGS=%LANGS:,= %"
|
set "LANGS=%LANGS:,= %"
|
||||||
|
|
||||||
set "SCRIPT_DIR=%~dp0"
|
|
||||||
for %%I in ("%SCRIPT_DIR%..") do set "SRC=%%~fI"
|
|
||||||
|
|
||||||
if not exist "%DEST_ROOT%" mkdir "%DEST_ROOT%"
|
if not exist "%DEST_ROOT%" mkdir "%DEST_ROOT%"
|
||||||
for %%I in ("%DEST_ROOT%") do set "DEST_ROOT_ABS=%%~fI"
|
for %%I in ("%DEST_ROOT%") do set "DEST_ROOT_ABS=%%~fI"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue