.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "DH_QUILT_UNPATCH 1" .TH DH_QUILT_UNPATCH 1 2024-04-18 "perl v5.38.2" Debhelper .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME dh_quilt_unpatch \- unapply patches listed in debian/patches/series .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBdh_quilt_unpatch\fR [\fIdebhelper\ options\fR] .SH DESCRIPTION .IX Header "DESCRIPTION" dh_quilt_unpatch simply calls \fBquilt pop \-a\fR after having set the environment variable \fBQUILT_PATCHES\fR to \fBdebian/patches\fR. All patches listed in \fBdebian/patches/series\fR are then unapplied in the current directory. The command does not fail if the patches have already been unapplied. .PP If the file \fBdebian/patches/series\fR does not exist or is empty, dh_quilt_unpatch returns without doing anything. .PP You can use another directory instead of \fBdebian/patches\fR by setting (and exporting) the environment variable \fBQUILT_PATCH_DIR\fR. .SH EXAMPLES .IX Header "EXAMPLES" dh_quilt_unpatch is usually called indirectly in a rules file via the dh command. .PP .Vb 2 \& %: \& dh $@ \-\-with quilt .Ve .PP It can also be direcly called in the clean rule. .PP .Vb 6 \& clean: \& dh_testdir \& dh_testroot \& [ ! \-f Makefile ] || $(MAKE) clean \& dh_quilt_unpatch \& dh_clean .Ve .SH NOTES .IX Header "NOTES" This tool is useless if you use the source package format \fB3.0 (quilt)\fR. Consider switching to this source format if you haven't done it yet. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdebhelper\fR\|(7), \fBdh\fR\|(1). .PP This program is meant to be used together with debhelper. .SH AUTHOR .IX Header "AUTHOR" Raphael Hertzog