From: John Allen (john.allen at domain online.ie)
Date: Wed 19 Jun 2002 - 17:59:20 IST
nils Olofsson wrote:
> ok,
> Back to my orignal question.
> Are the steps that i am following correct of am i doing something wrong.
> for a refresh here is the steps i am taking.
> bash$ su - root
> bash# export CVSROOT=/home/cvsroot
> bash# groupadd --help
> bash# groupadd cvs
> bash# useradd --help
> bash# useradd -g cvs -d $CVSROOT cvs
> bash# mkdir $CVSROOT
>
> bash# ls -ld $CVSROOT ... (you should see the listing)
> bash# chgrp -R cvs $CVSROOT
> 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
>
> # WARNING! WARNING: If you set CVSREAD to yes, checkout and update
> will try hard to # make the files in your working directory
> read-only. When this is not set,
> # the default behavior is to permit modification of your working files.
> bash$ export CVSREAD=yes
>
> # Change directory is a must
> bash$ cd $HOME/somedir/anotherdir/directory/my_source_code_dir
>
> # Must give vendor tag and revision tag
> cvs import somedir/anotherdir/directory/my_source_code_dir Vendor1_0
> Rev1_0 # Also note that it is very important to give the directory
> tree starting
> # from the $HOME, that is, in above example starting from somedir.
> # For example I did:
> bash$ cd $HOME/howto/foobar
> bash$ cvs import howto/foobar Vendor1_0 Rev1_0
>
> # Another example is:
> bash$ cd $HOME/javafilesdir
> bash$ cvs import javafilesdir Vendor1_0 Rev1_0
>
> # A sample testing and verification:
> bash$ cd $HOME/howto/foobar
> bash$ cvs checkout myfoo.java
Try
mkdir $HOME/work
cd $HOME/work
cvs co .
>
> Can anyone please tell me where i am going wrong.
>
> Nils
>
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:22 GMT