Skip to content

Instantly share code, notes, and snippets.

@geekware
Created July 18, 2020 23:11
Show Gist options
  • Save geekware/f2a489a9b05fcac002c0e5ead05dcd5c to your computer and use it in GitHub Desktop.
Save geekware/f2a489a9b05fcac002c0e5ead05dcd5c to your computer and use it in GitHub Desktop.
ipatch v. @PACKAGE_VERSION@ "@PACKAGE_TAG@" [1/5]
[0/5]
Usage: ipatch <operation> <work dir> <patch|dir|conf>
where <operation> is one of
push or + apply patch
test or ~ test patch
pop or - reversing patch
help or h or ? print this help
where <work dir> is some directory. For current directory use dot.
where <patch|dir|conf> is one of
<dir>/<patch> Any patch file *.{diff,patch,gz,bz,bz2,lrz,xz,zip,Z}
<dir> For recursive apply or reversing all patches from directory. For current directory use dot.
<dir>/<conf> Patch set config file *.conf
patch set config file format:
<operation>,<patch|dir>
Examples:
To apply all patches to current directory from /etc/portage/patches
ipatch push . /etc/portage/patches
To reversing patch /etc/portage/patches/reiser4-for-3.14.1.patch.gz in /usr/src/linux
ipatch pop /usr/src/linux /etc/portage/patches/reiser4-for-3.14.1.patch.gz
To apply all patches from /etc/portage/patches/local.conf config file in /usr/src/linux
ipatch push /usr/src/linux /etc/portage/patches/local.conf
ipatch is copyright Andrey Ovcharov <sudormrfhalt@gmail.com> and contributors.
Distributed under the terms of the GNU General Public License version 3. NO WARRANTY given.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment