logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dh_quilt_unpatch - unapply patches listed in debian/patches/series

Author

       Raphael Hertzog <hertzog@debian.org>

perl v5.38.2                                       2024-04-18                                DH_QUILT_UNPATCH(1)

Description

       dh_quilt_unpatch simply calls quiltpop-a after having set the environment variable QUILT_PATCHES to
       debian/patches.  All patches listed in debian/patches/series are then unapplied in the current directory.
       The command does not fail if the patches have already been unapplied.

       If the file debian/patches/series does not exist or is empty, dh_quilt_unpatch returns without doing
       anything.

       You can use another directory instead of debian/patches by setting (and exporting) the environment
       variable QUILT_PATCH_DIR.

Examples

       dh_quilt_unpatch is usually called indirectly in a rules file via the dh command.

               %:
                       dh $@ --with quilt

       It can also be direcly called in the clean rule.

               clean:
                       dh_testdir
                       dh_testroot
                       [ ! -f Makefile ] || $(MAKE) clean
                       dh_quilt_unpatch
                       dh_clean

Name

       dh_quilt_unpatch - unapply patches listed in debian/patches/series

Notes

       This tool is useless if you use the source package format 3.0(quilt).  Consider switching to this source
       format if you haven't done it yet.

See Also

debhelper(7), dh(1).

       This program is meant to be used together with debhelper.

Synopsis

dh_quilt_unpatch [debhelperoptions]

See Also