#!/bin/sh
# If the SDP is installed, use the default SDP instance to define the
# shell environment, e.g. the correct Python path and path to P4
# executables. Otherwise, attempt to set reasonable defaults.
# For details the Server Deployment Package (SDP), see:
# https://swarm.workshop.perforce.com/projects/perforce-software-sdp
if [[ -r /p4/common/bin/p4_vars ]]; then
source /p4/common/bin/p4_vars
else
export P4PORT=localhost:1666
export PATH=/opt/perforce/bin:$PATH
fi
export P4USER=automerge
export P4CLIENT=automerge_ws
python /p4/common/bin/automerge/automerge.py -d -v