215 lines
7.0 KiB
Batchfile
Executable File
215 lines
7.0 KiB
Batchfile
Executable File
@ECHO OFF
|
|
|
|
:: SWITCH ON REMOTE SYMLINKS
|
|
fsutil behavior set SymlinkEvaluation R2L:1
|
|
fsutil behavior set SymlinkEvaluation R2R:1
|
|
|
|
if "%1"=="buildmachine" (
|
|
set BUILD_MACHINE=1
|
|
)
|
|
|
|
cd /d %~dp0
|
|
call data_get_project_info.bat
|
|
|
|
TITLE %RS_PROJECT% Title Update: Getting %RS_PROJECT% Title Update build...
|
|
ECHO %RS_PROJECT% Title Update: Getting %RS_PROJECT% Title Update build...
|
|
|
|
set syncerror=0
|
|
|
|
echo Killing SystrayRfs and RAG
|
|
taskkill /IM SysTrayRfs.exe
|
|
taskkill /IM rag.exe
|
|
taskkill /IM ragApp.exe
|
|
|
|
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev/*.*@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev/common/...@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2>> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev/dlc_patch/...@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2>> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev/ps3/...@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2>> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev/TROPDIR/...@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2>> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev/xbox360/...@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2>> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev_Live/*.*@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev_Live/common/...@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2>> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev_Live/dlc_patch/...@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2>> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev_Live/ps3/...@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2>> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev_Live/TROPDIR/...@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2>> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync %PERFORCE_ROOT%/titleupdate/dev_Live/xbox360/...@%PERFORCE_NETWORK_DEMO_LABEL_NAME% 2>> %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
|
|
|
|
p4 sync //gta5_dlc/mpPacks/mpBeach/build/dev/...@GTA5_network_demo 2> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpBeach/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpChristmas/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpChristmas/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpValentines/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpValentines/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpBusiness/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpBusiness/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpBusiness2/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpBusiness2/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpHipster/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpHipster/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpHeist/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpHeist/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpPilot/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpPilot/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpIndependence/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpIndependence/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpLTS/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpLTS/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpChristmas2/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpChristmas2/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpLuxe/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpLuxe/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpLuxe2/build/dev/...@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
p4 sync //gta5_dlc/mpPacks/mpLuxe2/*.*@GTA5_network_demo 2>> %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
set syncerror=1
|
|
)
|
|
if "%BUILD_MACHINE%"=="1" (
|
|
goto:END
|
|
)
|
|
|
|
::--- check for errors ---
|
|
IF %syncerror% EQU 0 (
|
|
echo .
|
|
echo Grab successful.
|
|
)
|
|
IF %syncerror% EQU 1 (
|
|
echo .
|
|
echo WARNING: Errors were reported during the grab.
|
|
notepad %RS_TOOLSROOT%/logs/tu_sync.txt
|
|
notepad %RS_TOOLSROOT%/logs/dlc_sync.txt
|
|
)
|
|
|
|
|
|
::----- restart rag and systray -----------
|
|
tasklist /FI "IMAGENAME eq rag.exe" 2>NUL | find /I "rag.exe" > NUL
|
|
IF !ERRORLEVEL! EQU 1 (
|
|
echo Starting Rag proxy.
|
|
start /d %RS_TOOLSBIN%\rag\ %RS_TOOLSBIN%\rag\rag.exe
|
|
) ELSE (
|
|
echo Rag proxy already started.
|
|
)
|
|
tasklist | find /I "SysTrayRfs.exe"
|
|
IF %ERRORLEVEL% EQU 1 (
|
|
|
|
start %RS_TOOLSBIN%\SysTrayRfs.exe -trusted -nofocus
|
|
|
|
)
|
|
::---------------------------------------------------------------
|
|
|
|
pause
|
|
|
|
:END
|