#!/usr/bin/perl -w =head1 NAME dh_quilt_patch - apply patches listed in debian/patches/series =cut use strict; use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS B [S>] =head1 DESCRIPTION dh_quilt_patch simply calls B after having set the environment variable B to B. All patches listed in B are then applied in the current directory. The command does not fail if the patches have already been applied. You can use another directory instead of B by setting (and exporting) the environment variable B. =head1 EXAMPLES dh_quilt_patch is usually called indirectly in a rules file via the dh command. %: dh $@ --with quilt It can also be direcly called at the start of the build (or configure) rule. build: dh_quilt_patch ./configure $(MAKE) =cut init(); $ENV{"QUILT_PATCHES"} = $ENV{"QUILT_PATCH_DIR"} ? $ENV{"QUILT_PATCH_DIR"} : "debian/patches"; complex_doit('quilt --quiltrc /dev/null push -a || test $? = 2'); =head1 NOTES This tool is useless if you use the source package format B<3.0 (quilt)>. Consider switching to this source format if you haven't done it yet. =head1 SEE ALSO L, L. This program is meant to be used together with debhelper. =head1 AUTHOR Raphael Hertzog =cut