Creating a Patch File: diff -Naur olddir newdir > new-patch-file
- or -

diff -Naur oldfile newfile >new-patch-file

Using the Patch Command: patch -p0 patch -p1
Which one of the above patch commands you use depends on your current working directory.
Other Methods for calling the patch command – using standard input of patch: cat new-patch | patch -p0

Buy me a beer

Related posts:

  1. Creating & using ext3 filesystem images Ext3 is a linux filesystem and used by most of...
  2. Creating Assembly Code with gcc Use the -S (note: capital S) switch to GCC, and...
  3. Sample Linux Driver (module) I am generally writing linux drivers for embedded systems for...
  4. Configuring CVS and CVSUP on Linux Installation of CVS and CVSUP Installing CVS on Redhat Linux...
  5. Shell script to check file & directory existance if [ -f filename ] then echo "file exist" else...