|
|
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
Related posts:
- Creating & using ext3 filesystem images Ext3 is a linux filesystem and used by most of...
- Creating Assembly Code with gcc Use the -S (note: capital S) switch to GCC, and...
- Sample Linux Driver (module) I am generally writing linux drivers for embedded systems for...
- Configuring CVS and CVSUP on Linux Installation of CVS and CVSUP Installing CVS on Redhat Linux...
- Shell script to check file & directory existance if [ -f filename ] then echo "file exist" else...
Comments
Leave a comment Trackback