:: ============================================================================
:: Copyright and license info is available in the LICENSE file included with
:: the Server Deployment Package (SDP), and also available online:
:: https://swarm.workshop.perforce.com/projects/perforce-software-sdp/view/main/LICENSE
:: ----------------------------------------------------------------------------

@echo off
set TempSetEnv=%cd%\_setenv.bat
powershell -file c:\p4\common\bin\p4env.ps1 -TempSetEnv "%TempSetEnv%" -SDPInstance %1
call %TempSetEnv%
PATH=%SDP_INSTANCE_BIN_DIR%;%SCRIPTS_DIR%;%PATH%
echo Added to Path: %SDP_INSTANCE_BIN_DIR%
echo Environment variables:
set p4
set sdp