- cvs checkout mypack package:
get an image of the mypack package under $MYROOT.
> cd $MYROOT
> cvs co mypack
> cd mypack
> ls
-- list of all mypack files --
- cvs checkout a patch of mypack package:
get an image of the mypack/mypatch package under $MYROOT.
> cd $MYROOT
> cvs co mypack/mypatch
> cd mypack
> ls
mypatch
> cd mypatch
-- list of all mypatch files --
- cvs checkout a file of a patch of mypack package:
get an image of the mypack/mypatch/myfile.F package under $MYROOT.
> cd $MYROOT
> cvs co mypack/mypatch/myfile.F
> cd mypack
> ls
mypatch
> cd mypatch
> ls
myfile.F
- cvs -n update mypack:
look at what files have changed since last update
or checkout.
> cd $MYROOT
> cvs -n update mypack
U prefix means the file has been updated on the repository.
M prefix means you have modified the file.
C prefix means the file has been updated on the repository and
you have modified it.
- cvs update mypack
update your directory with what is new on the repository.
> cd $MYROOT
> cvs update mypack
- cvs add newfile [newfile2] [newfile3]
tell cvs that you have added some files to mypack/mypatch.
> cd $MYROOT/mypack/mypatch
> -- add file1 file2 --
> cvs add file1 file2
- cvs remove oldfile [oldfile2]
tell cvs that you have removed some files from mypack/mypatch.
> cd $MYROOT/mypack/mypatch
> -- rm file1 --
> cvs remove file1
- cvs commit
commit your changes to the repository: make them avalaible to everbody else
through a cvs update or a cvs checkout.
> cd $MYROOT/mypack
> cvs commit -m 'mypack01 new version'
- cvs import to install a new package called mypack:
files which belong to mypack new package are stored in mypack directory,
mypack can contain patch subdirectories.
> cd mypack
> cvs import mypack -m 'import mypack' myname mypack00