Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37859615
en ru br
ALT Linux repos
S:1.11.23-alt9
5.0: 1.11.23-alt1
4.1: 1.11.22-alt3
4.0: 1.11.22-alt2
+updates:1.11.22-alt2
3.0: 1.11.20-alt1

Group :: Development/Other
RPM: cvs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/sh -e

unset HOME TMPDIR ||:

if [ -z "$CVS_CONF" ]; then
if [ -f /etc/cvs/pserver.conf ]; then
CVS_CONF=/etc/cvs/pserver.conf
elif [ -f /etc/cvs/cvs.conf ]; then
CVS_CONF=/etc/cvs/cvs.conf
fi
fi

if [ -z "$CVS_CONF" ]; then
echo "No CVS pserver config file defined." >&2
exit 1
fi

if [ ! -r "$CVS_CONF" ]; then
echo "CVS pserver config file '$CVS_CONF' not found." >&2
exit 1
fi

. $CVS_CONF

unset roots ||:

OLDIFS="$IFS"
IFS=":$IFS"
for d in $CVS_REPOS; do
IFS="$OLDIFS"
if [ -d "$d/CVSROOT" ]; then
roots="$roots --allow-root=$d"
fi
done
IFS="$OLDIFS"

unset tmps ||:
[ -z "$CVS_TMPDIR" ] || tmps="-T $CVS_TMPDIR"

unset CVS_REPOS CVS_TMPDIR ||:

if [ -n "$roots" ]; then
exec /usr/bin/cvs -f $tmps $roots pserver
else
echo "Repository not configured in $CVS_CONF" >&2
exit 2
fi
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin