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\VSS\win32;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%\bin

ss checkout $/bin/halo2ship.xbe -G- -I-

ss checkin $/bin/halo2ship.xbe -I-

ss undocheckout $/bin/halo2ship.xbe -G- < c:\scripts\bat\y.bat
