Below actions will be performed
- Running a patch between the old source code and the new source code (new files + new directories) diff -urPp old_src new_src> new.patch
- create a temporary directory mkdir temp
- copy the source old source directory to temp directory cp -r old_src temp
- copy the patch file to the created temp directory cp new.patch temp
- change directory cd temp
- apply patch patch -p0 <new.patch
Now all patches will be applied with file changes + new files + adding a directory in the temp directory
Ankit source share