MKPATCH

Section: USER COMMANDS (1)
Updated: 11 January 1994
Index Return to Main Contents
 

NAME

mkpatch - make a patch file

 

SYNOPSIS

mkpatch [-Pa][-b base_dir][-p patch_id][-e ext][-E ext] \
        [-f patch_file] file [...]

 

DESCRIPTION

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:

-P
update PATCHDATES
-a
append. Do not generate a header.
-b base_dir
Compare each file with the version found under base_dir.
-p patch_id
Identify the patch as patch_id.
-e ext
(~) If no base_dir look for files with an extention of ext to compare against.
-E Ext
(.old) When writing out the diffs, use Ext instead of ext.
-f patch_file
Identify the name for the patch file.

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"

 

SEE ALSO

diff(1), patch(1L)

 

AUTHOR

Simon J. Gerraty <sjg@zen.void.oz.au>


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 10:23:55 GMT, December 12, 2024