From d621b5d6c0d8b1d662843c22c179b45dfbbbee04 Mon Sep 17 00:00:00 2001 From: gferg <> Date: Sun, 26 Aug 2001 21:45:33 +0000 Subject: [PATCH] updated --- LDP/howto/linuxdoc/CVS-RCS-HOWTO.sgml | 89 +++++++++++++++++++-------- LDP/howto/linuxdoc/LILO.sgml | 11 ++-- LDP/howto/linuxdoc/Linux+WinNT.sgml | 66 +++++++++++++++++++- 3 files changed, 136 insertions(+), 30 deletions(-) diff --git a/LDP/howto/linuxdoc/CVS-RCS-HOWTO.sgml b/LDP/howto/linuxdoc/CVS-RCS-HOWTO.sgml index 5d5a8a5c..4989e910 100644 --- a/LDP/howto/linuxdoc/CVS-RCS-HOWTO.sgml +++ b/LDP/howto/linuxdoc/CVS-RCS-HOWTO.sgml @@ -44,7 +44,7 @@ Revision Control System Al Dev (Alavoor Vasudevan) -v21.3, 15 July 2001 +v21.4, 25 Aug 2001 This document is a "practical guide" to very quickly setup CVS/RCS source code control system. This document has custom shell scripts that are wrappers @@ -224,26 +224,61 @@ and give read, write access to Unix group/user. Also make sure that the directory name of CVSROOT does not contain any blank spaces. For example CVSROOT should not be like '/home/my rootcvs'. -export CVSROOT=/home/cvsroot -mkdir $CVSROOT -chmod o-rwx $CVSROOT -chmod ug+rwx $CVSROOT - -Now, change the group of $CVSROOT to the group-name of users who want to use CVS sytem. - -chgrp users $CVSROOT - -To initialize the CVS repository and to put in source code files do: - -cvs init +bash$ su - root +bash# export CVSROOT=/home/cvsroot +bash# groupadd --help +bash# groupadd cvs +bash# useradd --help +bash# useradd -g cvs -d /home/cvsroot cvs + +bash# ls -ld $CVSROOT ... (you should see the listing) +bash# chmod o-rwx $CVSROOT +bash# chmod ug+rwx $CVSROOT + +#To initialize the CVS repository and to put in source code files do: +bash# cvs init + +# Add the unix users to the cvs group. Create supplementary groups for users. +# Note that you MUST not put any blank spaces after comma seperating the +# group names in -G option. +# In example below user tom belongs to groups cvs, users and staff and user +# johnson belongs to group cvs only. +bash# usermod --help +bash# usermod -G cvs some_unix_username +bash# usermod -G cvs,users,staff tom +bash# usermod -G cvs,users,staroffice billclinton +bash# usermod -G cvs johnson +bash# exit .... (logout of root superuser mode) + +# Login as a user and import files into cvs.... +bash$ su - billclinton +bash$ export EDITOR=/bin/vi +bash$ export CVSROOT=/home/cvsroot +bash$ export CVSREAD=yes # Change directory is a must -cd $HOME/my_source_code_dir +bash$ cd $HOME/my_source_code_dir # Must give vendor tag and revision tag -cvs import my_source_code_dir V1_0 R1_0 +cvs import my_source_code_dir Vendor1_0 Rev1_0 +# For example I did: +bash$ cd $HOME/foobar +bash$ cvs import foobar Vendor1_0 Rev1_0 + +# A sample testing and verification: +bash$ cd $HOME/foobar +bash$ cvs checkout myfoo.java + +TROUBLESHOOTING: When doing checkout it says module is unknown. It +is a common mistake not to change directory while doing cvs import. You +MUST change directory to the +source-code-directory and then do cvs import. For example: + +bash$ cd $HOME/foobardir +bash$ cvs import foobardir Vendor1_0 Rev1_0 +