Sign In/My Account | View Cart  
advertisement
-->




Perl Resources | Topic: Programming

makepatch
The makepatch package contains two programs, both written in Perl: makepatch and applypatch. makepatch will generate a patch kit from two source trees. It traverses the source directory and runs a 'diff' on each pair of corresponding files, accumulating the output into a patch kit. The applypatch program will do the following:
  • It will extensively verify that the patch kit is complete and not corrupted during transfer.
  • It will apply some heuristics to verify that the directory in which the patch will be applied does indeed contain the expected sources.
  • It creates files and directories as necessary.
  • It applies the patch by running the 'patch' program.
  • Upon completion, obsolete files, directories and .orig files are removed, file modes of new files are set, and the timestamps of all patched files are adjusted.



Sponsored By: