#!/bin/sh

# $Debian$

#
# Execute pserver
#

unset HOME
if [ -f /etc/cvs-pserver.conf ]; then
	. /etc/cvs-pserver.conf
elif [ -f /etc/cvs.conf ]; then
	. /etc/cvs.conf
else
	CVS_PSERV_REPOS=""
fi

allow_root_opts=""
OLDIFS="$IFS"
IFS=':'
for i in $CVS_PSERV_REPOS; do
	IFS="$OLDIFS"
	allow_root_opts="$allow_root_opts --allow-root=$i"
done

cvs_tmp_dir=""
[ "$CVS_TMP_DIR" != "" ] && cvs_tmp_dir="-T $CVS_TEMP_DIR"

exec /usr/bin/cvs -b /usr/bin ${cvs_tmp_dir} ${allow_root_opts} pserver

# End of file.
