| UPDATE-PATCHES(1) | General Commands Manual | UPDATE-PATCHES(1) |
update-patches —
create or update patches for a given port
update-patches |
update-patches is a helper script for the
target update-patches in
bsd.port.mk(5). It takes no
argument, but uses quite a few environment variables as implicit
parameters.
update-patches looks under
WRKDIST for patched files. Those are files with
extension PATCHORIG, except for those matching also
DISTORIG.
Once those files are found, they are matched against the contents
of directory PATCHDIR, most specifically files
matching wildcard PATCH_LIST. Matching files are
regenerated on the basis of
$ diff -u -p -a ${DIFF_ARGS}
$file$PATCHORIG $fileand compared. Modified patches are updated and reported, new patches are generated, and old patches that no longer seem to exist are also reported.
As an exception, if a $file.beforesubst original file is found, it is used instead of $file in the diff line:
$ diff -u -p -a ${DIFF_ARGS}
$file$PATCHORIG $file.beforesubstThe patch header is normalized to always be:
Index: $file --- $file.orig +++ $file
Patches with problematic cvs(1) keywords may be fixed if possible, and reported if not.
update-patches prints the list of changed
patches for further study.
DIFF_ARGSDISTORIGFORCE_REGENPATCHDIRPATCHORIGPATCH_LISTPATCH_VERBOSEupdate-patches to tell about everything it
does.WRKDIST| June 26, 2018 | openbsd |