diff and patch
2014-09-03 03:44
232 查看
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:
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:
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
相关文章推荐
- Linux系统补丁工具patch AND diff
- linux 补丁创建及使用原理(diff and patch)
- How to apply a patch/diff and solve “hunk FAILED”, “can’t find file to patch” and others
- Linux系统补丁工具patch AND diff
- Introduction: Using diff and patch (tutorial)
- diff and patch
- Linux系统补丁工具patch AND diff
- The Ten Minute Guide to diff and patch
- diff and patch
- patch and diff
- The Ten Minute Guide to diff and patch
- diff and patch学习笔记
- The Ten Minute Guide to diff and patch
- How to apply a patch/diff and solve “hunk FAILED”, “can’t find file to patch” and others
- diff and patch
- git diff --no-prefix and patch
- diff and patch
- Using cvs, patch and diff
- linux下的程序补丁工具diff and patch
- diff and patch