File: cvs-pserver

package info (click to toggle)
cvs 1.11.1p1debian-10
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,936 kB
  • ctags: 13
  • sloc: sh: 645; makefile: 92
file content (31 lines) | stat: -rw-r--r-- 505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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.