diff2patches(1)

diff2patches1

Extract non-debian/ patches from .diff.gz files

Usage

diff2patches filename

diff2patches {--help | --version}

Overview

Extracts patches from .diff.gz which apply to files outside the “debian/” directory scope. A patch is created for each modified file. Each patch is named according to the path of the modified file, with “/” replaced by “___”, and an extension of “.patch”.

Options

filename

Extract patches from filename which apply outside the “debian/” directory.

--help

Output help information and exit.

--version

Output version information and exit.

Files

debian/control

Existence of this file is tested before any patch is extracted.

debian/
debian/patches/

Patches are extracted to one of these directories. “debian/patches/” is preferred, if it exists. If DEB_PATCHES is present in the environment, it will override this behavior (see “ENVIRONMENT VARIABLES” section below).

Environment

DEB_PATCHES

When defined and points to an existing directory, patches are extracted in that directory and not under “debian/” nor “debian/patches/”.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 2 times.

  1. 5.0
  2. 6.0
  3. 7–13

Author

Raphael Geissert <[email protected]>

From devscripts 2.25.15+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.