Name:
Location: United States

Wednesday, December 05, 2007

How to generate patch

1. To generate patchs across all levels of source trees, run
diff -urN orginal_directory/ new_directory/ >my_patch

my_patch will show difference between old_directory sources and new_directory sources codes
binary file can not be patched.
2. To apply patch to the old source tree
cd original_directory
patch -p1 <../my_patch

0 Comments:

Post a Comment

<< Home