How to get a CVS package from Harv11 archive
- Setup: export CVSROOT=/data/harv11/a/cvsroot
- Checkout the package
- cvs checkout TopNtupleMacros
Contents of our CVS archive
Papers/PrimeVtxCDF6430/
Papers/PrimeVtxSecVtxCDF6417/
TopNtupleMacros/
ZPlusJets/
How was it Setup?
Information on How to Setup CVS is in:
http://www.tldp.org/HOWTO/CVS-RCS-HOWTO.html
======================================================================
The following environment variables need to be setup in /etc/profile -
default values required for all users. If not set in /etc/profile,
then you should add these to your local profile file /.bash_profile.
export EDITOR=/bin/vi
export CVSROOT=/home/cvsroot
======================================================================
Harv11 Setup
======================================================================
Users will have to add the following to their .bash_profile
export EDITOR=/usr/bin/emacs
export CVSROOT=/data/harv11/a/cvsroot
===============
Me creating CVS
===============
I have done the following as root:
----------------------------------
# Create directory for CVS
# Create CVS group and user
export CVSROOT=/data/harv11/a/cvsroot
groupadd cvs
useradd -g cvs -d $CVSROOT cvs
mkdir $CVSROOT
chgrp -R cvs $CVSROOT
chmod o-rwx $CVSROOT
chmod ug+rwx $CVSROOT
# To initialize the CVS repository and to put in source code files
# do (but requires env CVSROOT to be set) :
cvs init
# Add the unix users to the cvs group. Create supplementary groups for users.
# Note that all groups that the user belongs to have to be listed
usermod -G cvs,cdf,apache guima
usermod -G cvs,cdf,apache rappocc
usermod -G cvs,cdf,apache burkett
usermod -G cvs,cdf,apache lmiller
usermod -G cvs,cdf,apache holloway
This is it for root
-------------------
Now has a "user" need to create files in repository:
---------------------------------------------------
#
# Login as a user and import files into cvs....
#
su guima
export EDITOR=/usr/bin/emacs
export CVSROOT=/data/harv11/a/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.
export CVSREAD=yes
Added first files
-----------------
# I am not sure what I am doing but this what I did!
cd Papers
cvs import Papers harvard_1_0 rev_1_0
cd PrimeVtxSecVtxCDF6417
cvs import Papers/PrimeVtxSecVtxCDF6417 harvard_1_0 rev_1_0
To checkout:
============
# Get just the basic files from Papers
cvs checkout -l Papers
# Get the paper you care about
cvs checkout Papers/PrimeVtxCDF6430