setenv PATH ${PATH}:/home/qepcad/binand
setenv PRCS_REPOSITORY /courses/wcbrown/PRCSNow, suppose you want to checkout an existing project ... say
cth
. You create a directory that you want all the
project files to be brought into, and you enter:
prcs checkout cthAll the cth files from the most recent version of cth will end up in that directory, and you can simply type
make
to create the program. Now, if you make some changes to the
project and you'd like to submit it as a new version of cth,
you
prcs checkin cth
prcs checkout cth
prcs info -l cthIt'll tell you what the different versions are, when they appeared, and even what kind of things changed from version to version.
.prj
acts as the accounting document for the project. It's a
manifest of all the files encompassed by the project, and
includes version information, etc. Here's the file cth.prj:
You see in red were the two files that make up the file are incorporated. If you want to add a file to the project, as opposed to simply modifying an existing file, you'd have to add a line for it. For example, if you added a cth.h file, you'd need to add the line
cth.prj ;; -*- Prcs -*- (Created-By-Prcs-Version 1 3 0) (Project-Description "A Coin-toss-game simulator.") (Project-Version cth 0 4) (Parent-Version cth 0 3) (Version-Log "Created full path to pp program") (New-Version-Log "") (Checkin-Time "Fri, 11 Feb 2005 13:51:50 -0500") (Checkin-Login m057206) (Populate-Ignore ()) (Project-Keywords) (Files ;; This is a comment. Fill in files here. ;; For example: (prcs/checkout.cc ()) ;; Files added by populate at Wed, 09 Feb 2005 14:06:23 -0500, ;; to version 0.0(w), by m050000: (Makefile (cth/0_Makefile 1.1 600)) (cth.cpp (cth/1_cth.cpp 1.4 600)) ) (Merge-Parents) (New-Merge-Parents)
to cth.prj. Where it goes relative to the other files is unimportant. What's in parens after the filename is also unimportant. PRCS using that space for bookkeeping.(cth.h ())
prcs checkout name
. This
doesn't check anything out, but it will create the
skeleton of the name.prj file you needprcs populate
to have prcs add
entries for all the files in your directory to name.prj
prcs checkin name