2025-08-08 13:33:08 -06:00
|
|
|
@echo off
|
|
|
|
|
setlocal
|
|
|
|
|
|
2025-08-17 14:22:09 -06:00
|
|
|
:: Get current date in YYYY-MM-DD format
|
2025-08-08 13:33:08 -06:00
|
|
|
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (
|
|
|
|
|
set mm=%%a
|
|
|
|
|
set dd=%%b
|
|
|
|
|
set yy=%%c
|
|
|
|
|
)
|
2025-08-17 14:22:09 -06:00
|
|
|
set yyyy=20%yy:~-2%
|
2025-10-30 11:29:58 -06:00
|
|
|
set yymmdd=%yy:~-2%%mm%%dd%
|
2025-08-08 13:33:08 -06:00
|
|
|
|
|
|
|
|
:: Ask for project name
|
|
|
|
|
set /p projectName="Enter project name (press Enter for default 'NewProject'): "
|
|
|
|
|
if "%projectName%"=="" set projectName=NewProject
|
2025-10-30 11:29:58 -06:00
|
|
|
set projectRoot=%yymmdd%_%projectName%
|
2025-08-08 13:33:08 -06:00
|
|
|
|
|
|
|
|
:: Create main project directory
|
|
|
|
|
mkdir "%projectRoot%"
|
|
|
|
|
|
|
|
|
|
:: Create Assets structure
|
|
|
|
|
mkdir "%projectRoot%\Assets\ElevenLabs"
|
2025-08-15 12:38:22 -06:00
|
|
|
if exist "A:\1 Amazon_Active_Projects\3 ProjectStructure\NewDaily.bat" copy /Y "A:\1 Amazon_Active_Projects\3 ProjectStructure\NewDaily.bat" "%projectRoot%\Assets\ElevenLabs\NewDaily.bat" >nul
|
2025-08-08 13:33:08 -06:00
|
|
|
mkdir "%projectRoot%\Assets\Blends"
|
2025-09-17 09:42:32 -06:00
|
|
|
mkdir "%projectRoot%\Assets\Mocap"
|
2025-08-08 13:33:08 -06:00
|
|
|
mkdir "%projectRoot%\Assets\VO"
|
2025-09-16 22:11:55 -06:00
|
|
|
if exist "%~dp0NewDaily.bat" copy /Y "%~dp0NewDaily.bat" "%projectRoot%\Assets\VO\NewDaily.bat" >nul
|
2025-08-08 13:33:08 -06:00
|
|
|
|
|
|
|
|
:: Create Blends structure
|
2025-09-04 11:38:15 -06:00
|
|
|
mkdir "%projectRoot%\Blends\animations\"
|
2025-08-08 13:33:08 -06:00
|
|
|
mkdir "%projectRoot%\Blends\stills\img-BG"
|
|
|
|
|
|
|
|
|
|
:: Create Deliverable structure
|
|
|
|
|
mkdir "%projectRoot%\Deliverable\"
|
|
|
|
|
|
|
|
|
|
:: Create Pr structure
|
|
|
|
|
mkdir "%projectRoot%\Pr\RnR\RIFE"
|
|
|
|
|
|
2025-08-08 16:48:08 -06:00
|
|
|
:: Add project root additions
|
|
|
|
|
if not exist "%projectRoot%\Renders" mkdir "%projectRoot%\Renders"
|
|
|
|
|
|
2025-08-08 16:54:18 -06:00
|
|
|
:: Place helper scripts into Renders
|
2025-11-06 10:47:19 -07:00
|
|
|
set "templateRoot=%~dp0"
|
|
|
|
|
if not exist "%templateRoot%ZipSeqArchv.bat" set "templateRoot=A:\1 Amazon_Active_Projects\3 ProjectStructure\"
|
|
|
|
|
if exist "%templateRoot%UpdateSequences.bat" copy /Y "%templateRoot%UpdateSequences.bat" "%projectRoot%\Renders\UpdateSequences.bat" >nul
|
|
|
|
|
if exist "%templateRoot%ZipSeqArchv.bat" copy /Y "%templateRoot%ZipSeqArchv.bat" "%projectRoot%\Renders\ZipSeqArchv.bat" >nul
|
|
|
|
|
if exist "%templateRoot%UnzipSeqArchv.bat" copy /Y "%templateRoot%UnzipSeqArchv.bat" "%projectRoot%\Renders\UnzipSeqArchv.bat" >nul
|
2025-08-08 16:54:18 -06:00
|
|
|
|
2025-08-08 16:48:08 -06:00
|
|
|
:: Use repo-provided templates for git config files
|
2025-08-17 14:27:16 -06:00
|
|
|
if exist "%~dp0components\gitignore" copy /Y "%~dp0components\gitignore" "%projectRoot%\.gitignore" >nul
|
|
|
|
|
if exist "%~dp0components\gitattributes" copy /Y "%~dp0components\gitattributes" "%projectRoot%\.gitattributes" >nul
|
2025-08-08 16:48:08 -06:00
|
|
|
|
|
|
|
|
:: Initialize git and install Git LFS
|
|
|
|
|
pushd "%projectRoot%" >nul
|
|
|
|
|
git init
|
|
|
|
|
git lfs install
|
2025-08-20 14:40:49 -06:00
|
|
|
git add . -v
|
|
|
|
|
git commit -m "init"
|
2025-08-08 16:48:08 -06:00
|
|
|
popd >nul
|
2025-08-08 13:33:08 -06:00
|
|
|
|
|
|
|
|
echo Project structure created successfully in folder: %projectRoot%
|
|
|
|
|
pause
|