Download Red Hat Enterprise Linux 7 Developer Guide
Transcript
Red Hat Ent erprise Linux 7 Developer G uide Let us assume that the directory with your project has the following contents: ~]$ l s mypro ject AUTHORS doc INSTALL LICENSE Makefile README src TODO Let us further assume that you have an empty CVS repository in the ~ /cvs/ directory. To import the project under the pro ject directory in this repository with the myco mpany vendor tag and the i ni t release tag, type: myproject]$ expo rt C VSR O O T = ~ /cvs myproject]$ cvs i mpo rt -m "Ini ti al i mpo rt. " pro ject myco mpany i ni t N project/Makefile N project/AUTHORS N project/LICENSE N project/TODO N project/INSTALL ... 1.1.3. Checking Out a Working Copy To check out a working copy of a project in a CVS repository, run the following command: cvs -d cvs_repository checko ut module This creates a new directory called module with a working copy of a project in it. Note that cvs_repository is the URL of the CVS repository and module is the subdirectory in which the project is stored (such as pro ject). Alternatively, you can set the $C VSR O O T environment variable as follows: expo rt C VSR O O T = cvs_repository Then you can use the cvs checko ut command without the -d option: cvs checko ut module Examp le 1.4 . C h eckin g o u t a wo rkin g co p y Let us assume that you have a CVS repository in the ~ /cvs/ directory and that this repository contains a module named pro ject. To check out a working copy of this module, type: ~]$ expo rt C VSR O O T = ~ /cvs ~]$ cvs checko ut pro ject cvs checkout: Updating project U project/AUTHORS U project/INSTALL U project/LICENSE U project/Makefile U project/TODO 1.1.4 . Adding and Delet ing Files 4