summaryrefslogtreecommitdiff
path: root/dh_clean
diff options
context:
space:
mode:
Diffstat (limited to 'dh_clean')
-rwxr-xr-xdh_clean8
1 files changed, 8 insertions, 0 deletions
diff --git a/dh_clean b/dh_clean
index 88bc885f..96b8113a 100755
--- a/dh_clean
+++ b/dh_clean
@@ -25,6 +25,8 @@ debian diff:
It does not run "make clean" to clean up after the build process. Use
L<dh_auto_clean(1)> to do that.
+The debian/clean file can list other files to be removed.
+
=head1 OPTIONS
=over 4
@@ -81,6 +83,12 @@ if (! $dh{D_FLAG}) {
if (@ARGV) {
doit("rm","-f","--",@ARGV);
}
+
+ if (!compat(6) && -e "debian/clean") {
+ my @clean=grep { ! excludefile($_) }
+ filearray("debian/clean", ".");
+ doit("rm","-f","--",@clean) if @clean;
+ }
if (! $dh{K_FLAG}) {
doit("rm","-f","debian/files")