Development Snippts
Patch File
Build Patch
- Linux:
diff -Naur /path/to/original /path/to/modified > aaa.patch
,这样就可以生成名字为aaa.patch的文件了 - Windoes: 可以通过版本工具来创建,比如TortoiseSVN之类
Apply Patch
patch -p0 /path/to/to_be_patched < /path/to/patch_file.patch
diff -Naur /path/to/original /path/to/modified > aaa.patch
,这样就可以生成名字为aaa.patch的文件了patch -p0 /path/to/to_be_patched < /path/to/patch_file.patch