61 lines
1.0 KiB
Batchfile
Executable File
61 lines
1.0 KiB
Batchfile
Executable File
@echo off
|
|
|
|
rem setLocal EnableDelayedExpansion
|
|
rem setlocal
|
|
|
|
set BaseSrcDir=X:\gta5\script\dev_ng\singleplayer\sco\DEBUG\
|
|
|
|
set srcDir=%BaseSrcDir%
|
|
set extensionToMatch=sco
|
|
CALL :CopyLastModified
|
|
|
|
::set srcDir=%BaseSrcDir%\ps3
|
|
::set extensionToMatch=csc
|
|
::CALL :CopyLastModified
|
|
|
|
::set srcDir=%BaseSrcDir%\win32
|
|
::set extensionToMatch=wsc
|
|
::CALL :CopyLastModified
|
|
|
|
set srcDir=%BaseSrcDir%\win64
|
|
set extensionToMatch=ysc
|
|
CALL :CopyLastModified
|
|
|
|
::set srcDir=%BaseSrcDir%\xbox360
|
|
::set extensionToMatch=xsc
|
|
::CALL :CopyLastModified
|
|
|
|
GOTO :eof
|
|
|
|
|
|
|
|
:CopyLastModified
|
|
set lastmod=
|
|
|
|
pushd %srcDir%
|
|
|
|
for /f "tokens=*" %%a in ('dir *.%extensionToMatch% /b /od') do set lastmod=%%a
|
|
|
|
if "%lastmod%"=="" echo Could not find any files in source directory.&goto :eof
|
|
|
|
|
|
SET Branch=dev_ng
|
|
CALL :CopyOneFile
|
|
|
|
SET Branch=release
|
|
CALL :CopyOneFile
|
|
|
|
GOTO :eof
|
|
|
|
|
|
|
|
:CopyOneFile
|
|
set destDir=X:\gta5\build\%Branch%\preview\
|
|
echo Copying %lastmod% to %destDir%
|
|
|
|
IF NOT EXIST %destDir% MKDIR %destDir%
|
|
copy "%lastmod%" %destDir%
|
|
|
|
GOTO :eof
|
|
|