freebsd-ports/devel/p4/files/perforce.sh.in
Thomas Gellekum 2529b3ee9e Upgrade to r00.2.
Submitted by:	Samuel Tardieu <sam@inf.enst.fr> (Maintainer)
2001-01-09 12:29:27 +00:00

15 lines
284 B
Bash

#!/bin/sh
case $1 in
start)
[ -f @PREFIX@/etc/perforce ] && . @PREFIX@/etc/perforce
if [ x$PERFORCE_START = xyes ]; then
echo -n ' perforce'
p4d -r $PERFORCE_ROOT $PERFORCE_OPTIONS
fi
;;
stop)
killall p4d && echo -n ' perforce'
;;
*) ;;
esac