diff options
Diffstat (limited to 'gnu/usr.bin/cvs/cvsinit/cvsinit.sh')
-rw-r--r-- | gnu/usr.bin/cvs/cvsinit/cvsinit.sh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/gnu/usr.bin/cvs/cvsinit/cvsinit.sh b/gnu/usr.bin/cvs/cvsinit/cvsinit.sh index 58e4332..61f3a10 100644 --- a/gnu/usr.bin/cvs/cvsinit/cvsinit.sh +++ b/gnu/usr.bin/cvs/cvsinit/cvsinit.sh @@ -1,14 +1,18 @@ +#! /bin/sh : # # Copyright (c) 1992, Brian Berliner # # You may distribute under the terms of the GNU General Public License as -# specified in the README file that comes with the CVS 1.3 kit. +# specified in the README file that comes with the CVS 1.4 kit. # -# @(#)cvsinit 1.1 92/03/31 +# $CVSid: @(#)cvsinit.sh 1.1 94/10/22 $ # # This script should be run once to help you setup your site for CVS. +# this line is edited by Makefile when creating cvsinit.inst +CVSLIB="xLIBDIRx" + # Make sure that the CVSROOT variable is set if [ "x$CVSROOT" = x ]; then echo "The CVSROOT environment variable is not set." @@ -155,9 +159,9 @@ else 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 + cat $CVSLIB/contrib/log.pl >> $CVSROOT/CVSROOT/log.pl chmod 755 $CVSROOT/CVSROOT/log.pl - cp examples/loginfo $CVSROOT/CVSROOT/loginfo + cp $CVSLIB/examples/loginfo $CVSROOT/CVSROOT/loginfo break fi done @@ -207,13 +211,15 @@ for info in commitinfo rcsinfo editinfo; do else echo "The $CVSROOT/CVSROOT/$info file does not exist." echo "Making a simple one for you..." - sed -e 's/^\([^#]\)/#\1/' examples/$info > $CVSROOT/CVSROOT/$info + sed -e 's/^\([^#]\)/#\1/' $CVSLIB/examples/$info > $CVSROOT/CVSROOT/$info fi (cd $CVSROOT/CVSROOT; ci -q -u -t/dev/null -m"initial checkin of $info" $info) echo "" fi done +# XXX - also add a stub for the cvsignore file + # Turn on history logging by default if [ ! -f $CVSROOT/CVSROOT/history ]; then echo "Enabling CVS history logging..." |