Date: Thu, 23 Mar 1995 14:28:56 -0800 (PST) From: Steven G Kargl <kargl@troutmask.apl.washington.edu> To: freebsd-current@freefall.cdrom.com (FreeBSD Current) Subject: /usr/bin/cvsinit bug Message-ID: <199503232228.OAA12630@troutmask.apl.washington.edu>
next in thread | raw e-mail | index | archive | help
I decided to learn cvs so I downloaded cvs-texi-0.8.tar.gz and read
parts of the manual. To start this adventure, I decided to place
one of my small projects under cvs.
%setenv CVSROOT /home/kargl/cvsroot
%mkdir /home/kargl/cvsroot
%mkdir /home/kargl/cvsroot/CVSROOT
%cvsinit
cvsinit is a script that helps set up the administrative side of
cvs, but it appears to go belly-up on the initialization of log.pl
and loginfo.
>From cvsinit:
# loginfo, like modules, is special-cased
if [ -f $CVSROOT/CVSROOT/loginfo,v ]; then
[...delete...]
else
if [ -f $CVSROOT/CVSROOT/loginfo ]; then
echo "You have a $CVSROOT/CVSROOT/loginfo file,"
echo "But no $CVSROOT/CVSROOT/loginfo,v file."
echo "I'll create one for you, but otherwise leave it alone..."
else
echo "The $CVSROOT/CVSROOT/loginfo file does not exist."
echo "Making a simple one for you..."
# try to find perl; use fancy log script if we can
for perlpath in `echo $PATH | sed -e 's/:/ /g'` x; do
if [ -f $perlpath/perl ]; then
echo "#!$perlpath/perl" > $CVSROOT/CVSROOT/log.pl
cat contrib/log.pl >> $CVSROOT/CVSROOT/log.pl
chmod 755 $CVSROOT/CVSROOT/log.pl
cp examples/loginfo $CVSROOT/CVSROOT/loginfo
break
fi
done
if [ $perlpath = x ]; then
# we did not find perl anywhere, so make a simple loginfo file
[... delete ...]
fi
fi
(cd $CVSROOT/CVSROOT; ci -q -u -t/dev/null -m'initial checkin of loginfo' loginfo)
echo ""
fi
We have perl, so the above executes. But, contrib/log.pl and examples/loginfo
only exist in /usr/src/gnu/usr.bin/cvs. This might be fixed by installing
cvs/contrib and cvs/examples into /usr/share and fixing the script to look
there.
--
Steven G. Kargl | Phone: 206-685-4677 |
Applied Physics Laboratory | Fax: 206-543-6785 |
University of Washington |---------------------|
1013 NE 40th St | FreeBSD 2.1-current |
Seattle, WA 98105 |---------------------|
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503232228.OAA12630>
