Click to See Complete Forum and Search --> : cvs help


fonnerk
08-09-2001, 03:12 PM
I am new to programming on linux and I was experimenting with cvs off of instructions out of a book.

It told me to type "cvs -d helloworld.cvsroot init" after creating the directory ofcourse.

I then got the error....
cvs init: CVSROOT "helloworld.cvsroot" must be an absolute path name

how can I correct this?
I assume this has something to do with path since this worked when I created the directory directly in my home directory.
But I would like to organize my files within my home directory like...
/dev/java/helloworld/helloword.cvsroot

Is this ok to do?

Salmon
08-09-2001, 08:16 PM
You have to specify an absolute path to the directory. So if you want your CVSROOT created in ./temp (which must exist at the time you issue the command) and your current working directory is /home/fonnerk then you would issue:

'cvs -d /home/fonnerk/temp init'

Then directory named CVSROOT will be created in /home/fonnerk/temp and populated with all the goodies that cvs needs to take care of business.

Hope that helps. It takes a little bit of getting used to, but cvs is really a fabulous tool.