echo on
REM Build root is the base directory of the build environment
SET BUILDROOT=c:\prophets

REM Location of SourceSafe executables
SET SOURCESAFELOC=C:\Program Files\Microsoft Visual Studio\Common\VSS\win32

REM Add Scripts directory and SS to Path
SET Path=%Path%;c:\scripts;%SOURCESAFELOC%

REM This is where I check the newly built binaries back into the content tree
REM I do this by doing a checkout that does not call a get, hence -G-
REM Then I just simply call a checkin and do not stop for any input, hence -I-
REM Must set source project directory
SET SSDIR=\\gameshare\share\bungie\prophets\Content

SET srcproject=$/
ss cp %srcproject%

cd %buildroot%

ss checkout $/blam.exe -G- -I-
ss checkout $/guerilla.exe -G- -I-
ss checkout $/tool.exe -G- -I-
ss checkout $/sapien.exe -G- -I-

ss checkin $/blam.exe -I-
ss checkin $/guerilla.exe -I-
ss checkin $/tool.exe -I-
ss checkin $/sapien.exe -I-

ss undocheckout $/blam.exe -G- < c:\scripts\bat\y.bat
ss undocheckout $/guerilla.exe -G- < c:\scripts\bat\y.bat
ss undocheckout $/tool.exe -G- < c:\scripts\bat\y.bat
ss undocheckout $/sapien.exe -G- < c:\scripts\bat\y.bat

cd %buildroot%\bin

ss checkout $/bin/blamdebug.map -G- -I-
ss checkout $/bin/guerilladebug.map -G- -I-
ss checkout $/bin/halo2final.xbe -G- -I-
ss checkout $/bin/halo2debug.map -G- -I-
ss checkout $/bin/halo2debug.xbe -G- -I-
ss checkout $/bin/halo2profile.map -G- -I-
ss checkout $/bin/halo2profile.xbe -G- -I-
ss checkout $/bin/halo2tagdebug.map -G- -I-
ss checkout $/bin/halo2tagdebug.xbe -G- -I-
ss checkout $/bin/tooldebug.map -G- -I-
ss checkout $/bin/sapiendebug.map -G- -I-

ss checkin $/bin/blamdebug.map -I-
ss checkin $/bin/guerilladebug.map -I-
ss checkin $/bin/halo2final.xbe -I-
ss checkin $/bin/halo2debug.map -I-
ss checkin $/bin/halo2debug.xbe -I-
ss checkin $/bin/halo2profile.map -I-
ss checkin $/bin/halo2profile.xbe -I-
ss checkin $/bin/halo2tagdebug.map -I-
ss checkin $/bin/halo2tagdebug.xbe -I-
ss checkin $/bin/tooldebug.map -I-
ss checkin $/bin/sapiendebug.map -I-

ss undocheckout $/bin/blamdebug.map -G- < c:\scripts\bat\y.bat
ss undocheckout $/bin/guerilladebug.map -G- < c:\scripts\bat\y.bat
ss undocheckout $/bin/halo2final.xbe -G- < c:\scripts\bat\y.bat
ss undocheckout $/bin/halo2debug.map -G- < c:\scripts\bat\y.bat
ss undocheckout $/bin/halo2debug.xbe -G- < c:\scripts\bat\y.bat
ss undocheckout $/bin/halo2profile.map -G- < c:\scripts\bat\y.bat
ss undocheckout $/bin/halo2profile.xbe -G- < c:\scripts\bat\y.bat
ss undocheckout $/bin/halo2tagdebug.map -G- < c:\scripts\bat\y.bat
ss undocheckout $/bin/halo2tagdebug.xbe -G- < c:\scripts\bat\y.bat
ss undocheckout $/bin/tooldebug.map -G- < c:\scripts\bat\y.bat
ss undocheckout $/bin/sapiendebug.map -G- < c:\scripts\bat\y.bat
