4. Create a directory to hold a project and add it to the repository:
$ mkdir newhello
$ cvs add newhello
Directory /space/cvs/newhello added to the repository
797
Programming Tools and Utilities 29
5. Change into the new directory, copy your project files into it (fill in the your_new_
hello_code with the name of the directory where you have the actual source code files
for the new project), and then add those files (and any directories that might be present)
to the repository:
$ cd newhello
$ cp /your_new_hello_code/* .
$ cvs add *c *h
cvs add: scheduling file `hello.c' for addition
cvs add: scheduling file `msg.c' for addition
cvs add: scheduling file `main.c' for addition
cvs add: scheduling file `showit.c' for addition
cvs add: use 'cvs commit' to add these files permanently
6. Do as the instructions recommend: Execute the command cvs commit to make the
added files and directories permanent. You??™ll first see a screen (which is actually a vi
editor session) asking you to enter a log message. If you don??™t want to enter a log message,
press Esc, and type ZZ to save and exit. After you close the vi session, the output
you see should resemble the following:
$ cvs commit
cvs commit: Examining .
RCS file: /space/cvs/newhello/hello.c,v
done
Checking in hello.
Pages:
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442