首页 > 其他 > 详细

diff and patch

时间:2014-09-03 03:52:16      阅读:358      评论:0      收藏:0      [点我收藏+]

A patch captures the changes of two different files (oldfile and newfile). Given the oldfile and the patch, one can use the patch program to create the newfile. This is exactly what we want. When you have done all the modifications, you can perform a command like this:

diff -ruNp minix_src_clean/ proj0/ > patch

this will creat a new file called patch.

You can test whether your patch has worked by creating another copy of the source tree and running patch as so:

cp -r minix_src_clean test
cd test
patch -p1 < ../patch

 

diff and patch

原文:http://www.cnblogs.com/miaoz/p/3952703.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!