现在的位置: 首页 > 综合 > 正文

Linux 下如何 做patch 和打patch

2012年12月17日 ⁄ 综合 ⁄ 共 233字 ⁄ 字号 评论关闭

1. 制作patch

diff -crN Component_org Component > 01_Component_xxx.patch

2. 打patch

patch -pl < ./01_Component_xxx.patch

3. 使用quilt 管理patch

# tar xvjf prj-0.1-patches.tar.bz2 Component/
# quilt push -a  <== 打series所有补丁

# quilt pop -a <== 退出补丁

# quilt diff > xxx.patch 合并所有补丁

抱歉!评论已关闭.