To tell CVS to use this directory as CVSROOT by setting the CVSROOT environment variable.spam 5 ~> mkdir -p cvsroot/CVSROOT spam 6 ~> cd cvsroot spam 7 ~/cvsroot> cvs init
csh:
spam 7 ~> setenv CVSROOT $HOME/cvsroot
sh:
$ CVSROOT=$HOME/cvsroot $ export CVSROOT
Now from withing that use the 'cvs import <repository> <vendor-tag> <release-tag>' command.spam 14 ~> cp -r myos myos.tmp spam 15 ~> cd myos.tmp spam 16 ~/myos.tmp> rm *~ *.o
now if you look in $CVSROOT you should see a directory made for your osspam 17 ~/myos.tmp> cvs import myos konk start *cvs will ask you to enter version info now * N myos/main.c N myos/Makefile No conflicts created by this import
you can now remove your temporary directory and archive and remove you old os scource directory.spam 23 ~/myos.tmp> ls $CVSROOT CVSROOT myos
spam 24 ~/myos.tmp> cd .. spam 25 ~> rm -r myos.tmp spam 26 ~> tar -cf myos-old.tar myos spam 27 ~> gzip myos-old.tar spam 28 ~> rm -r myos
After this point CVSROOT will be stored in the directory you just checked out so you will not need to set it when using the checked out copy.spam 3 ~> cvs checkout myos cvs checkout: Updating myos U myos/Makefile U myos/main.c spam 4 ~> ls myos CVS Makefile main.c
spam 7 ~/myos> cvs update cvs update: Updating . U main.c
spam 33 ~/myos> cvs commit > tmp cvs commit: Examining . cvs commit: Committing . *cvs will ask you to enter version info now * /u/gilling/cvsroot/myos/main.c,v <-- main.c new revision: 1.3; previous revision: 1.2 done
spam 10 ~/myos> cvs add spam.c cvs add: scheduling file `spam.c' for addition cvs add: use 'cvs commit' to add this file permanently spam 11 ~/myos> cvs commit cvs commit: Examining . cvs commit: Committing . *cvs will ask you to enter version info now * RCS file: /u/gilling/cvsroot/myos/spam.c,v done Checking in spam.c; /u/gilling/cvsroot/myos/spam.c,v <-- spam.c initial revision: 1.1 done