- 论坛徽章:
- 0
|
Faq5中的一段:
Following -Stable
If you wish to check out an alternative "branch" of the tree, such as the -stable branch, you will use the "-r" modifier to your checkout:
# cd /usr
# export CVSROOT=anoncvs@anoncvs.example.org:/cvs
# cvs -d$CVSROOT checkout -rOPENBSD_4_4 -P src
This will pull the src files from the OPENBSD_4_4 branch, which is also known as the "Patch branch" or "-stable". You would update the code similarly:
# cd /usr/src
# export CVSROOT=anoncvs@anoncvs.example.org:/cvs
# cvs -d$CVSROOT up -rOPENBSD_4_4 -Pd
Actually, CVS is nice enough to stick a "Tag" in the checked out file system, so you don't have to remember the "-rOPENBSD_4_4" part of the command line, it will remember this until you explicitly clear them or set a new tag by using the "-A" option to "update". However, it is probably better to provide too much info in your CVS command lines than too little.
请问这个checkout到底是什么意思?
PS:我更新源码的方法
从FTP下载src.tar.gz和sys.tar.gz,
然后
# tar zxf src.tar.gz -C /usr/src
# tar zxf sys.tar.gz -C /usr/src
接着
cd /usr/src
export CVSROOT=anoncvs@anoncvs1.ca.openbsd.org:/cvs
cvs -q -d$CVSROOT up -rOPENBSD_4_4 -Pd
这样对吗?
[ 本帖最后由 opuffy 于 2009-4-8 11:20 编辑 ] |
|