Showing posts with label patch. Show all posts
Showing posts with label patch. Show all posts

Apr 18, 2008

diff & patch 用法

建立patch:


updated dir : src/update

original dir : src/orig

# diff -ruN src/orig src/update > my.patch


套用patch:


# cd src/

# patch -p1 < my.patch