cfgdeploy
again... prepping to just archive old seq and zip latest
This commit is contained in:
+2
-1
@@ -3,5 +3,6 @@
|
|||||||
"structDir": "D:\\0 ProjectStructure",
|
"structDir": "D:\\0 ProjectStructure",
|
||||||
"zipper": "7z",
|
"zipper": "7z",
|
||||||
"compression": 0,
|
"compression": 0,
|
||||||
"Max7zInst": 0
|
"Max7zInst": 0,
|
||||||
|
"zipsegLimit": "2G"
|
||||||
}
|
}
|
||||||
@@ -21,6 +21,8 @@
|
|||||||
*.tif filter=lfs diff=lfs merge=lfs -text
|
*.tif filter=lfs diff=lfs merge=lfs -text
|
||||||
*.tiff filter=lfs diff=lfs merge=lfs -text
|
*.tiff filter=lfs diff=lfs merge=lfs -text
|
||||||
*.webp filter=lfs diff=lfs merge=lfs -text
|
*.webp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.heic filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.HEIC filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
||||||
# 3D/CG files
|
# 3D/CG files
|
||||||
*.3ds filter=lfs diff=lfs merge=lfs -text
|
*.3ds filter=lfs diff=lfs merge=lfs -text
|
||||||
@@ -94,6 +96,9 @@
|
|||||||
*.prproj filter=lfs diff=lfs merge=lfs -text
|
*.prproj filter=lfs diff=lfs merge=lfs -text
|
||||||
*.ai filter=lfs diff=lfs merge=lfs -text
|
*.ai filter=lfs diff=lfs merge=lfs -text
|
||||||
*.psd filter=lfs diff=lfs merge=lfs -text
|
*.psd filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pk filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pkf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
||||||
|
|
||||||
# Davinci Resolve files
|
# Davinci Resolve files
|
||||||
*.dpx filter=lfs diff=lfs merge=lfs -text
|
*.dpx filter=lfs diff=lfs merge=lfs -text
|
||||||
@@ -107,6 +112,9 @@
|
|||||||
*.uni filter=lfs diff=lfs merge=lfs -text
|
*.uni filter=lfs diff=lfs merge=lfs -text
|
||||||
*.pdn filter=lfs diff=lfs merge=lfs -text
|
*.pdn filter=lfs diff=lfs merge=lfs -text
|
||||||
*.pur filter=lfs diff=lfs merge=lfs -text
|
*.pur filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.db filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.raw filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lnk filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
||||||
# Python files
|
# Python files
|
||||||
*.npz filter=lfs diff=lfs merge=lfs -text
|
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|||||||
+5
-1
@@ -40,6 +40,7 @@
|
|||||||
*~
|
*~
|
||||||
*.tmp
|
*.tmp
|
||||||
*.temp
|
*.temp
|
||||||
|
BL_proxy/
|
||||||
|
|
||||||
# OS generated files
|
# OS generated files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
@@ -123,4 +124,7 @@ Adobe Premiere Pro (Beta) Audio Previews/
|
|||||||
footage/
|
footage/
|
||||||
plates/
|
plates/
|
||||||
|
|
||||||
RnR/
|
RnR/
|
||||||
|
|
||||||
|
# Microsoft Office temporary files
|
||||||
|
~$*
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
*~
|
*~
|
||||||
*.tmp
|
*.tmp
|
||||||
*.temp
|
*.temp
|
||||||
|
BL_proxy/
|
||||||
|
|
||||||
# OS generated files
|
# OS generated files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
@@ -123,6 +124,7 @@ Adobe Premiere Pro (Beta) Audio Previews/
|
|||||||
footage/
|
footage/
|
||||||
plates/
|
plates/
|
||||||
|
|
||||||
Pr/RnR/
|
RnR/
|
||||||
# SpecStory explanation file
|
|
||||||
/.what-is-this.md
|
# Microsoft Office temporary files
|
||||||
|
~$*
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal
|
|
||||||
|
|
||||||
:: Get current date in YYYY-MM-DD format
|
|
||||||
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (
|
|
||||||
set mm=%%a
|
|
||||||
set dd=%%b
|
|
||||||
set yy=%%c
|
|
||||||
)
|
|
||||||
set yyyy=20%yy:~-2%
|
|
||||||
|
|
||||||
:: Create daily folder
|
|
||||||
mkdir "%yyyy%-%mm%-%dd%"
|
|
||||||
echo Daily folder created: %yyyy%-%mm%-%dd%
|
|
||||||
|
|
||||||
pause
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal EnableExtensions
|
|
||||||
|
|
||||||
set "script_dir=%~dp0"
|
|
||||||
set "current_dir=%CD%"
|
|
||||||
set "PROJ_ROOT="
|
|
||||||
|
|
||||||
REM First, check project level (one directory up from current) - most common case
|
|
||||||
for %%I in ("%current_dir%..") do set "project_level=%%~fI"
|
|
||||||
set "project_config=%project_level%\.config\config.json"
|
|
||||||
if exist "%project_config%" (
|
|
||||||
set "PROJ_ROOT=%project_level%"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM If not found at project level, search up from current working directory
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-StrictMode -Version Latest; $dir = '%current_dir%'; $found = $null; while ($dir -and -not $found) { $configPath = Join-Path $dir '.config\config.json'; if (Test-Path -LiteralPath $configPath) { $found = $dir; break }; $parent = Split-Path -Parent $dir; if ($parent -eq $dir) { break }; $dir = $parent }; if ($found) { Write-Output $found } else { Write-Output '' }"`) do set "PROJ_ROOT=%%I"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM If still not found, try searching from script location
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-StrictMode -Version Latest; $dir = '%script_dir%'; $found = $null; while ($dir -and -not $found) { $configPath = Join-Path $dir '.config\config.json'; if (Test-Path -LiteralPath $configPath) { $found = $dir; break }; $parent = Split-Path -Parent $dir; if ($parent -eq $dir) { break }; $dir = $parent }; if ($found) { Write-Output $found } else { Write-Output '' }"`) do set "PROJ_ROOT=%%I"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM Fallback: try original logic (script in 3 ProjectStructure)
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for %%I in ("%script_dir%..\..") do set "PROJ_ROOT=%%~fI"
|
|
||||||
)
|
|
||||||
|
|
||||||
set "CONFIG_DIR=%PROJ_ROOT%\.config"
|
|
||||||
set "CONFIG_PATH=%CONFIG_DIR%\config.json"
|
|
||||||
|
|
||||||
if not exist "%CONFIG_PATH%" (
|
|
||||||
echo [ERROR] config.json not found at %CONFIG_PATH%
|
|
||||||
if defined project_config (
|
|
||||||
echo Also checked: %project_config%
|
|
||||||
)
|
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
set "GET_STRUCT_DIR=%CONFIG_DIR%\GetStructDir.ps1"
|
|
||||||
|
|
||||||
if not exist "%GET_STRUCT_DIR%" (
|
|
||||||
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command ^
|
|
||||||
"Set-StrictMode -Version Latest; $structDir = & '%GET_STRUCT_DIR%' -ProjectRoot '%PROJ_ROOT%'; if (-not $structDir) { throw \"Failed to get structDir from GetStructDir.ps1\" }; $ps1Path = Join-Path $structDir 'UpdateSequences.ps1'; if (-not (Test-Path -LiteralPath $ps1Path)) { throw \"UpdateSequences.ps1 not found at $ps1Path\" }; Write-Output $ps1Path"`) do set "ps1=%%I"
|
|
||||||
|
|
||||||
if not defined ps1 (
|
|
||||||
echo [ERROR] Unable to resolve UpdateSequences.ps1 path from config.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
echo Running PowerShell update script...
|
|
||||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%ps1%"
|
|
||||||
set "rc=%errorlevel%"
|
|
||||||
echo PowerShell exited with RC=%rc%
|
|
||||||
echo Done.
|
|
||||||
pause >nul
|
|
||||||
exit /b %rc%
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal
|
|
||||||
|
|
||||||
:: Get current date in YYYY-MM-DD format
|
|
||||||
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (
|
|
||||||
set mm=%%a
|
|
||||||
set dd=%%b
|
|
||||||
set yy=%%c
|
|
||||||
)
|
|
||||||
set yyyy=20%yy:~-2%
|
|
||||||
|
|
||||||
:: Create daily folder
|
|
||||||
mkdir "%yyyy%-%mm%-%dd%"
|
|
||||||
echo Daily folder created: %yyyy%-%mm%-%dd%
|
|
||||||
|
|
||||||
pause
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal EnableExtensions
|
|
||||||
|
|
||||||
set "script_dir=%~dp0"
|
|
||||||
set "current_dir=%CD%"
|
|
||||||
set "PROJ_ROOT="
|
|
||||||
|
|
||||||
REM First, check project level (one directory up from current) - most common case
|
|
||||||
for %%I in ("%current_dir%..") do set "project_level=%%~fI"
|
|
||||||
set "project_config=%project_level%\.config\config.json"
|
|
||||||
if exist "%project_config%" (
|
|
||||||
set "PROJ_ROOT=%project_level%"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM If not found at project level, search up from current working directory
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-StrictMode -Version Latest; $dir = '%current_dir%'; $found = $null; while ($dir -and -not $found) { $configPath = Join-Path $dir '.config\config.json'; if (Test-Path -LiteralPath $configPath) { $found = $dir; break }; $parent = Split-Path -Parent $dir; if ($parent -eq $dir) { break }; $dir = $parent }; if ($found) { Write-Output $found } else { Write-Output '' }"`) do set "PROJ_ROOT=%%I"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM If still not found, try searching from script location
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-StrictMode -Version Latest; $dir = '%script_dir%'; $found = $null; while ($dir -and -not $found) { $configPath = Join-Path $dir '.config\config.json'; if (Test-Path -LiteralPath $configPath) { $found = $dir; break }; $parent = Split-Path -Parent $dir; if ($parent -eq $dir) { break }; $dir = $parent }; if ($found) { Write-Output $found } else { Write-Output '' }"`) do set "PROJ_ROOT=%%I"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM Fallback: try original logic (script in 3 ProjectStructure)
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for %%I in ("%script_dir%..\..") do set "PROJ_ROOT=%%~fI"
|
|
||||||
)
|
|
||||||
|
|
||||||
set "CONFIG_DIR=%PROJ_ROOT%\.config"
|
|
||||||
set "CONFIG_PATH=%CONFIG_DIR%\config.json"
|
|
||||||
|
|
||||||
if not exist "%CONFIG_PATH%" (
|
|
||||||
echo [ERROR] config.json not found at %CONFIG_PATH%
|
|
||||||
if defined project_config (
|
|
||||||
echo Also checked: %project_config%
|
|
||||||
)
|
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
set "GET_STRUCT_DIR=%CONFIG_DIR%\GetStructDir.ps1"
|
|
||||||
|
|
||||||
if not exist "%GET_STRUCT_DIR%" (
|
|
||||||
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command ^
|
|
||||||
"Set-StrictMode -Version Latest; $structDir = & '%GET_STRUCT_DIR%' -ProjectRoot '%PROJ_ROOT%'; if (-not $structDir) { throw \"Failed to get structDir from GetStructDir.ps1\" }; $ps1Path = Join-Path $structDir 'UpdateSequences.ps1'; if (-not (Test-Path -LiteralPath $ps1Path)) { throw \"UpdateSequences.ps1 not found at $ps1Path\" }; Write-Output $ps1Path"`) do set "ps1=%%I"
|
|
||||||
|
|
||||||
if not defined ps1 (
|
|
||||||
echo [ERROR] Unable to resolve UpdateSequences.ps1 path from config.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
echo Running PowerShell update script...
|
|
||||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%ps1%"
|
|
||||||
set "rc=%errorlevel%"
|
|
||||||
echo PowerShell exited with RC=%rc%
|
|
||||||
echo Done.
|
|
||||||
pause >nul
|
|
||||||
exit /b %rc%
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal
|
|
||||||
|
|
||||||
:: Get current date in YYYY-MM-DD format
|
|
||||||
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (
|
|
||||||
set mm=%%a
|
|
||||||
set dd=%%b
|
|
||||||
set yy=%%c
|
|
||||||
)
|
|
||||||
set yyyy=20%yy:~-2%
|
|
||||||
|
|
||||||
:: Create daily folder
|
|
||||||
mkdir "%yyyy%-%mm%-%dd%"
|
|
||||||
echo Daily folder created: %yyyy%-%mm%-%dd%
|
|
||||||
|
|
||||||
pause
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal
|
|
||||||
|
|
||||||
:: Get current date in YYYY-MM-DD format
|
|
||||||
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (
|
|
||||||
set mm=%%a
|
|
||||||
set dd=%%b
|
|
||||||
set yy=%%c
|
|
||||||
)
|
|
||||||
set yyyy=20%yy:~-2%
|
|
||||||
|
|
||||||
:: Create daily folder
|
|
||||||
mkdir "%yyyy%-%mm%-%dd%"
|
|
||||||
echo Daily folder created: %yyyy%-%mm%-%dd%
|
|
||||||
|
|
||||||
pause
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal EnableExtensions
|
|
||||||
|
|
||||||
set "script_dir=%~dp0"
|
|
||||||
set "current_dir=%CD%"
|
|
||||||
set "PROJ_ROOT="
|
|
||||||
|
|
||||||
REM First, check project level (one directory up from current) - most common case
|
|
||||||
for %%I in ("%current_dir%..") do set "project_level=%%~fI"
|
|
||||||
set "project_config=%project_level%\.config\config.json"
|
|
||||||
if exist "%project_config%" (
|
|
||||||
set "PROJ_ROOT=%project_level%"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM If not found at project level, search up from current working directory
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-StrictMode -Version Latest; $dir = '%current_dir%'; $found = $null; while ($dir -and -not $found) { $configPath = Join-Path $dir '.config\config.json'; if (Test-Path -LiteralPath $configPath) { $found = $dir; break }; $parent = Split-Path -Parent $dir; if ($parent -eq $dir) { break }; $dir = $parent }; if ($found) { Write-Output $found } else { Write-Output '' }"`) do set "PROJ_ROOT=%%I"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM If still not found, try searching from script location
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-StrictMode -Version Latest; $dir = '%script_dir%'; $found = $null; while ($dir -and -not $found) { $configPath = Join-Path $dir '.config\config.json'; if (Test-Path -LiteralPath $configPath) { $found = $dir; break }; $parent = Split-Path -Parent $dir; if ($parent -eq $dir) { break }; $dir = $parent }; if ($found) { Write-Output $found } else { Write-Output '' }"`) do set "PROJ_ROOT=%%I"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM Fallback: try original logic (script in 3 ProjectStructure)
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for %%I in ("%script_dir%..\..") do set "PROJ_ROOT=%%~fI"
|
|
||||||
)
|
|
||||||
|
|
||||||
set "CONFIG_DIR=%PROJ_ROOT%\.config"
|
|
||||||
set "CONFIG_PATH=%CONFIG_DIR%\config.json"
|
|
||||||
|
|
||||||
if not exist "%CONFIG_PATH%" (
|
|
||||||
echo [ERROR] config.json not found at %CONFIG_PATH%
|
|
||||||
if defined project_config (
|
|
||||||
echo Also checked: %project_config%
|
|
||||||
)
|
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
set "GET_STRUCT_DIR=%CONFIG_DIR%\GetStructDir.ps1"
|
|
||||||
|
|
||||||
if not exist "%GET_STRUCT_DIR%" (
|
|
||||||
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command ^
|
|
||||||
"Set-StrictMode -Version Latest; $structDir = & '%GET_STRUCT_DIR%' -ProjectRoot '%PROJ_ROOT%'; if (-not $structDir) { throw \"Failed to get structDir from GetStructDir.ps1\" }; $ps1Path = Join-Path $structDir 'UpdateSequences.ps1'; if (-not (Test-Path -LiteralPath $ps1Path)) { throw \"UpdateSequences.ps1 not found at $ps1Path\" }; Write-Output $ps1Path"`) do set "ps1=%%I"
|
|
||||||
|
|
||||||
if not defined ps1 (
|
|
||||||
echo [ERROR] Unable to resolve UpdateSequences.ps1 path from config.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
echo Running PowerShell update script...
|
|
||||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%ps1%"
|
|
||||||
set "rc=%errorlevel%"
|
|
||||||
echo PowerShell exited with RC=%rc%
|
|
||||||
echo Done.
|
|
||||||
pause >nul
|
|
||||||
exit /b %rc%
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,16 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal
|
|
||||||
|
|
||||||
:: Get current date in YYYY-MM-DD format
|
|
||||||
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (
|
|
||||||
set mm=%%a
|
|
||||||
set dd=%%b
|
|
||||||
set yy=%%c
|
|
||||||
)
|
|
||||||
set yyyy=20%yy:~-2%
|
|
||||||
|
|
||||||
:: Create daily folder
|
|
||||||
mkdir "%yyyy%-%mm%-%dd%"
|
|
||||||
echo Daily folder created: %yyyy%-%mm%-%dd%
|
|
||||||
|
|
||||||
pause
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal EnableExtensions
|
|
||||||
|
|
||||||
set "script_dir=%~dp0"
|
|
||||||
set "current_dir=%CD%"
|
|
||||||
set "PROJ_ROOT="
|
|
||||||
|
|
||||||
REM First, check project level (one directory up from current) - most common case
|
|
||||||
for %%I in ("%current_dir%..") do set "project_level=%%~fI"
|
|
||||||
set "project_config=%project_level%\.config\config.json"
|
|
||||||
if exist "%project_config%" (
|
|
||||||
set "PROJ_ROOT=%project_level%"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM If not found at project level, search up from current working directory
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-StrictMode -Version Latest; $dir = '%current_dir%'; $found = $null; while ($dir -and -not $found) { $configPath = Join-Path $dir '.config\config.json'; if (Test-Path -LiteralPath $configPath) { $found = $dir; break }; $parent = Split-Path -Parent $dir; if ($parent -eq $dir) { break }; $dir = $parent }; if ($found) { Write-Output $found } else { Write-Output '' }"`) do set "PROJ_ROOT=%%I"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM If still not found, try searching from script location
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-StrictMode -Version Latest; $dir = '%script_dir%'; $found = $null; while ($dir -and -not $found) { $configPath = Join-Path $dir '.config\config.json'; if (Test-Path -LiteralPath $configPath) { $found = $dir; break }; $parent = Split-Path -Parent $dir; if ($parent -eq $dir) { break }; $dir = $parent }; if ($found) { Write-Output $found } else { Write-Output '' }"`) do set "PROJ_ROOT=%%I"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM Fallback: try original logic (script in 3 ProjectStructure)
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for %%I in ("%script_dir%..\..") do set "PROJ_ROOT=%%~fI"
|
|
||||||
)
|
|
||||||
|
|
||||||
set "CONFIG_DIR=%PROJ_ROOT%\.config"
|
|
||||||
set "CONFIG_PATH=%CONFIG_DIR%\config.json"
|
|
||||||
|
|
||||||
if not exist "%CONFIG_PATH%" (
|
|
||||||
echo [ERROR] config.json not found at %CONFIG_PATH%
|
|
||||||
if defined project_config (
|
|
||||||
echo Also checked: %project_config%
|
|
||||||
)
|
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
set "GET_STRUCT_DIR=%CONFIG_DIR%\GetStructDir.ps1"
|
|
||||||
|
|
||||||
if not exist "%GET_STRUCT_DIR%" (
|
|
||||||
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command ^
|
|
||||||
"Set-StrictMode -Version Latest; $structDir = & '%GET_STRUCT_DIR%' -ProjectRoot '%PROJ_ROOT%'; if (-not $structDir) { throw \"Failed to get structDir from GetStructDir.ps1\" }; $ps1Path = Join-Path $structDir 'UpdateSequences.ps1'; if (-not (Test-Path -LiteralPath $ps1Path)) { throw \"UpdateSequences.ps1 not found at $ps1Path\" }; Write-Output $ps1Path"`) do set "ps1=%%I"
|
|
||||||
|
|
||||||
if not defined ps1 (
|
|
||||||
echo [ERROR] Unable to resolve UpdateSequences.ps1 path from config.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
echo Running PowerShell update script...
|
|
||||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%ps1%"
|
|
||||||
set "rc=%errorlevel%"
|
|
||||||
echo PowerShell exited with RC=%rc%
|
|
||||||
echo Done.
|
|
||||||
pause >nul
|
|
||||||
exit /b %rc%
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,16 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal
|
|
||||||
|
|
||||||
:: Get current date in YYYY-MM-DD format
|
|
||||||
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (
|
|
||||||
set mm=%%a
|
|
||||||
set dd=%%b
|
|
||||||
set yy=%%c
|
|
||||||
)
|
|
||||||
set yyyy=20%yy:~-2%
|
|
||||||
|
|
||||||
:: Create daily folder
|
|
||||||
mkdir "%yyyy%-%mm%-%dd%"
|
|
||||||
echo Daily folder created: %yyyy%-%mm%-%dd%
|
|
||||||
|
|
||||||
pause
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal EnableExtensions
|
|
||||||
|
|
||||||
set "script_dir=%~dp0"
|
|
||||||
set "current_dir=%CD%"
|
|
||||||
set "PROJ_ROOT="
|
|
||||||
|
|
||||||
REM First, check project level (one directory up from current) - most common case
|
|
||||||
for %%I in ("%current_dir%..") do set "project_level=%%~fI"
|
|
||||||
set "project_config=%project_level%\.config\config.json"
|
|
||||||
if exist "%project_config%" (
|
|
||||||
set "PROJ_ROOT=%project_level%"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM If not found at project level, search up from current working directory
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-StrictMode -Version Latest; $dir = '%current_dir%'; $found = $null; while ($dir -and -not $found) { $configPath = Join-Path $dir '.config\config.json'; if (Test-Path -LiteralPath $configPath) { $found = $dir; break }; $parent = Split-Path -Parent $dir; if ($parent -eq $dir) { break }; $dir = $parent }; if ($found) { Write-Output $found } else { Write-Output '' }"`) do set "PROJ_ROOT=%%I"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM If still not found, try searching from script location
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-StrictMode -Version Latest; $dir = '%script_dir%'; $found = $null; while ($dir -and -not $found) { $configPath = Join-Path $dir '.config\config.json'; if (Test-Path -LiteralPath $configPath) { $found = $dir; break }; $parent = Split-Path -Parent $dir; if ($parent -eq $dir) { break }; $dir = $parent }; if ($found) { Write-Output $found } else { Write-Output '' }"`) do set "PROJ_ROOT=%%I"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM Fallback: try original logic (script in 3 ProjectStructure)
|
|
||||||
if not defined PROJ_ROOT (
|
|
||||||
for %%I in ("%script_dir%..\..") do set "PROJ_ROOT=%%~fI"
|
|
||||||
)
|
|
||||||
|
|
||||||
set "CONFIG_DIR=%PROJ_ROOT%\.config"
|
|
||||||
set "CONFIG_PATH=%CONFIG_DIR%\config.json"
|
|
||||||
|
|
||||||
if not exist "%CONFIG_PATH%" (
|
|
||||||
echo [ERROR] config.json not found at %CONFIG_PATH%
|
|
||||||
if defined project_config (
|
|
||||||
echo Also checked: %project_config%
|
|
||||||
)
|
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
set "GET_STRUCT_DIR=%CONFIG_DIR%\GetStructDir.ps1"
|
|
||||||
|
|
||||||
if not exist "%GET_STRUCT_DIR%" (
|
|
||||||
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command ^
|
|
||||||
"Set-StrictMode -Version Latest; $structDir = & '%GET_STRUCT_DIR%' -ProjectRoot '%PROJ_ROOT%'; if (-not $structDir) { throw \"Failed to get structDir from GetStructDir.ps1\" }; $ps1Path = Join-Path $structDir 'UpdateSequences.ps1'; if (-not (Test-Path -LiteralPath $ps1Path)) { throw \"UpdateSequences.ps1 not found at $ps1Path\" }; Write-Output $ps1Path"`) do set "ps1=%%I"
|
|
||||||
|
|
||||||
if not defined ps1 (
|
|
||||||
echo [ERROR] Unable to resolve UpdateSequences.ps1 path from config.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
echo Running PowerShell update script...
|
|
||||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%ps1%"
|
|
||||||
set "rc=%errorlevel%"
|
|
||||||
echo PowerShell exited with RC=%rc%
|
|
||||||
echo Done.
|
|
||||||
pause >nul
|
|
||||||
exit /b %rc%
|
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal EnableExtensions EnableDelayedExpansion
|
||||||
|
|
||||||
|
set "REN_DIR=%~dp0"
|
||||||
|
for %%I in ("%REN_DIR%..") do set "PROJ_ROOT=%%~fI"
|
||||||
|
|
||||||
|
set "CONFIG_DIR=%PROJ_ROOT%\.config"
|
||||||
|
set "CONFIG_PATH=%CONFIG_DIR%\config.json"
|
||||||
|
set "GET_STRUCT_DIR=%CONFIG_DIR%\GetStructDir.ps1"
|
||||||
|
|
||||||
|
if not exist "%CONFIG_PATH%" (
|
||||||
|
echo [ERROR] config.json not found at %CONFIG_PATH%
|
||||||
|
echo Please run CfgDeploy.ps1 to deploy helper files.
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
if not exist "%GET_STRUCT_DIR%" (
|
||||||
|
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
||||||
|
echo Please run CfgDeploy.ps1 to deploy helper files.
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
for /f "usebackq delims=" %%I in (`powershell -NoProfile -ExecutionPolicy Bypass -Command ^
|
||||||
|
"Set-StrictMode -Version Latest; $structDir = & '%GET_STRUCT_DIR%' -ProjectRoot '%PROJ_ROOT%'; if (-not $structDir) { throw \"Failed to get structDir from GetStructDir.ps1\" }; $pyPath = Join-Path $structDir 'compress_sequence_pngs.py'; if (-not (Test-Path -LiteralPath $pyPath)) { throw \"compress_sequence_pngs.py not found at $pyPath\" }; Write-Output $pyPath"`) do set "PY_SCRIPT=%%~I"
|
||||||
|
|
||||||
|
if not defined PY_SCRIPT (
|
||||||
|
echo [ERROR] Unable to resolve compress_sequence_pngs.py path from config.
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
pushd "%PROJ_ROOT%" >nul 2>&1
|
||||||
|
|
||||||
|
python "%PY_SCRIPT%" %*
|
||||||
|
set "ERR=!ERRORLEVEL!"
|
||||||
|
|
||||||
|
popd >nul 2>&1
|
||||||
|
|
||||||
|
if !ERR! NEQ 0 (
|
||||||
|
echo PNG compression failed ^(exit code !ERR!^).
|
||||||
|
exit /b !ERR!
|
||||||
|
)
|
||||||
|
|
||||||
|
exit /b 0
|
||||||
@@ -10,13 +10,13 @@ set "GET_STRUCT_DIR=%CONFIG_DIR%\GetStructDir.ps1"
|
|||||||
|
|
||||||
if not exist "%CONFIG_PATH%" (
|
if not exist "%CONFIG_PATH%" (
|
||||||
echo [ERROR] config.json not found at %CONFIG_PATH%
|
echo [ERROR] config.json not found at %CONFIG_PATH%
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
echo Please run CfgDeploy.ps1 to deploy helper files.
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
if not exist "%GET_STRUCT_DIR%" (
|
if not exist "%GET_STRUCT_DIR%" (
|
||||||
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
echo Please run CfgDeploy.ps1 to deploy helper files.
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,58 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal enabledelayedexpansion
|
|
||||||
echo UpdateAllSequences - Running all UpdateSequences.bat files in submodule folders...
|
|
||||||
echo.
|
|
||||||
|
|
||||||
echo Searching for submodule folders and UpdateSequences.bat files...
|
|
||||||
echo.
|
|
||||||
|
|
||||||
REM Find all submodule folders and check for UpdateSequences.bat
|
|
||||||
set /a count=0
|
|
||||||
set /a found=0
|
|
||||||
|
|
||||||
echo Found the following submodule folders with UpdateSequences.bat:
|
|
||||||
for /d %%S in (*) do (
|
|
||||||
if exist "%%S\UpdateSequences.bat" (
|
|
||||||
echo - %%S
|
|
||||||
set /a found+=1
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
if !found!==0 (
|
|
||||||
echo No submodule folders with UpdateSequences.bat found!
|
|
||||||
echo.
|
|
||||||
echo Note: This script looks for UpdateSequences.bat files in immediate subdirectories.
|
|
||||||
echo Make sure you're running this from the project root where submodules are located.
|
|
||||||
pause
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
echo.
|
|
||||||
echo Found !found! submodule folders with UpdateSequences.bat files.
|
|
||||||
echo.
|
|
||||||
echo Starting execution...
|
|
||||||
echo.
|
|
||||||
|
|
||||||
REM Execute each UpdateSequences.bat found in submodule folders
|
|
||||||
for /d %%S in (*) do (
|
|
||||||
if exist "%%S\UpdateSequences.bat" (
|
|
||||||
set /a count+=1
|
|
||||||
echo [!count!/!found!] Running UpdateSequences.bat in %%S...
|
|
||||||
pushd "%%S"
|
|
||||||
call "UpdateSequences.bat" < NUL
|
|
||||||
set "rc=!errorlevel!"
|
|
||||||
popd
|
|
||||||
if !rc!==0 (
|
|
||||||
echo Completed: %%S (SUCCESS)
|
|
||||||
) else (
|
|
||||||
echo Completed: %%S (FAILED - RC=!rc!)
|
|
||||||
)
|
|
||||||
echo.
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
echo.
|
|
||||||
echo Operation completed. Successfully executed !count! UpdateSequences.bat files.
|
|
||||||
echo.
|
|
||||||
echo Note: Check individual _CURRENT\_UpdateSequences.log files in each submodule for details.
|
|
||||||
pause
|
|
||||||
@@ -35,7 +35,7 @@ if not exist "%CONFIG_PATH%" (
|
|||||||
if defined project_config (
|
if defined project_config (
|
||||||
echo Also checked: %project_config%
|
echo Also checked: %project_config%
|
||||||
)
|
)
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
echo Please run CfgDeploy.ps1 to deploy helper files.
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ set "GET_STRUCT_DIR=%CONFIG_DIR%\GetStructDir.ps1"
|
|||||||
|
|
||||||
if not exist "%GET_STRUCT_DIR%" (
|
if not exist "%GET_STRUCT_DIR%" (
|
||||||
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
echo Please run CfgDeploy.ps1 to deploy helper files.
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -55,9 +55,16 @@ if not defined ps1 (
|
|||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
echo Running PowerShell update script...
|
REM Run from batch directory (sequences next to batch, or submodule root)
|
||||||
|
set "WORK_DIR=%script_dir%"
|
||||||
|
if "%WORK_DIR:~-1%"=="\" set "WORK_DIR=%WORK_DIR:~0,-1%"
|
||||||
|
pushd "%WORK_DIR%" >nul 2>&1
|
||||||
|
|
||||||
|
echo Running PowerShell update script in %WORK_DIR%...
|
||||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%ps1%"
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%ps1%"
|
||||||
set "rc=%errorlevel%"
|
set "rc=%errorlevel%"
|
||||||
|
|
||||||
|
popd >nul 2>&1
|
||||||
echo PowerShell exited with RC=%rc%
|
echo PowerShell exited with RC=%rc%
|
||||||
echo Done.
|
echo Done.
|
||||||
pause >nul
|
pause >nul
|
||||||
@@ -10,13 +10,13 @@ set "GET_STRUCT_DIR=%CONFIG_DIR%\GetStructDir.ps1"
|
|||||||
|
|
||||||
if not exist "%CONFIG_PATH%" (
|
if not exist "%CONFIG_PATH%" (
|
||||||
echo [ERROR] config.json not found at %CONFIG_PATH%
|
echo [ERROR] config.json not found at %CONFIG_PATH%
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
echo Please run CfgDeploy.ps1 to deploy helper files.
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
if not exist "%GET_STRUCT_DIR%" (
|
if not exist "%GET_STRUCT_DIR%" (
|
||||||
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
echo [ERROR] GetStructDir.ps1 not found at %GET_STRUCT_DIR%
|
||||||
echo Please run ConfigLoader.ps1 to deploy helper files.
|
echo Please run CfgDeploy.ps1 to deploy helper files.
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user