免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2656 | 回复: 4
打印 上一主题 下一主题

[OpenBSD] OpenBSD的cvs checkout?(已解决) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-07 07:54 |只看该作者 |倒序浏览
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 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-04-07 08:47 |只看该作者
cvsup或者cvsync吧 cvs太慢了

论坛徽章:
0
3 [报告]
发表于 2009-04-07 10:36 |只看该作者
原帖由 wosl2001 于 2009-4-7 08:47 发表
cvsup或者cvsync吧 cvs太慢了


谢谢你的回复,那我更新源码的方法没错吧
从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

那个checkout是什么意思?

这一步
# tar zxf src.tar.gz -C /usr/src
# tar zxf sys.tar.gz -C /usr/src
是否等于
# cd /usr
# export CVSROOT=anoncvs@anoncvs.example.org:/cvs
# cvs -d$CVSROOT checkout -rOPENBSD_4_4 -P src

论坛徽章:
0
4 [报告]
发表于 2009-04-08 10:29 |只看该作者
checkout:导出。 将你机器上的源码同步至服务器上的一致。
对应的checkin:导入。

论坛徽章:
0
5 [报告]
发表于 2009-04-08 11:20 |只看该作者
原帖由 dingjeff 于 2009-4-8 10:29 发表
checkout:导出。 将你机器上的源码同步至服务器上的一致。
对应的checkin:导入。

谢谢。我昨天用CVSync把OpenBSD的源码库整个下载下来了,然后在本地执行cvs checkout,才算明白了checkout的意思。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP