mkpatch - make a patch file
mkpatch [-Pa][-b base_dir][-p patch_id][-e ext][-E ext] \ [-f patch_file] file [...]
For each file, compare the version found under base_dir with the current version. If they differ, then generate a context diff to add to a patchfile that follows the format of the C-News patches.
Options:
The context diff is passed through a sed script to clean out unwanted directory names. Thus:
mkpatch -b /tmp/pdksh sh/edit.c might produce output like: *** sh/edit.c~ Tue May 28 16:50:19 1991 --- sh/edit.c Thu May 23 16:00:44 1991 *************** *** 19,32 **** #include "sh.h" #include "lex.h" #include "tty.h" Instead of: *** /tmp/pdksh/sh/edit.c Tue May 28 16:50:19 1991 --- sh/edit.c Thu May 23 16:00:44 1991 *************** *** 19,32 **** #include "sh.h" #include "lex.h" #include "tty.h"
Simon J. Gerraty <sjg@zen.void.oz.au>