summaryrefslogtreecommitdiff
path: root/dh_clean
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-04-23 21:19:42 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-04-23 21:19:42 -0400
commita287ccd487dfd8c9cf7e1380409f78a8cebf83df (patch)
tree495f41827cf5e8b5f67ad72d7d81a9f870b5ff28 /dh_clean
parent30db799db6c5d66e635f03e74edc4b78215e9edd (diff)
do not clean debian/clean on -k
Diffstat (limited to 'dh_clean')
-rwxr-xr-xdh_clean26
1 files changed, 13 insertions, 13 deletions
diff --git a/dh_clean b/dh_clean
index 96b8113..cb1b950 100755
--- a/dh_clean
+++ b/dh_clean
@@ -33,13 +33,13 @@ The debian/clean file can list other files to be removed.
=item B<-k>, B<--keep>
-Do not delete debian/files. When do you want to use this? Anytime you have a
-debian/rules that has 2 binary targets that build different .deb packages;
-for example, one target is binary-arch, and the other is binary-indep, or
-one target builds the shared library, and the other the -dev package. If you
-didn't use -k in these cases, then debian/files would be deleted in the
-middle, and your changes file will only contain the last binary package that
-was built.
+Do not delete debian/files, or files listed in debian/clean. When do you
+want to use this? Anytime you have a debian/rules that has 2 binary targets
+that build different .deb packages; for example, one target is binary-arch,
+and the other is binary-indep, or one target builds the shared library, and
+the other the -dev package. If you didn't use -k in these cases, then
+debian/files would be deleted in the middle, and your changes file will
+only contain the last binary package that was built.
=item B<-d>, B<--dirs-only>
@@ -83,14 +83,14 @@ 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}) {
+ if (!compat(6) && -e "debian/clean") {
+ my @clean=grep { ! excludefile($_) }
+ filearray("debian/clean", ".");
+ doit("rm","-f","--",@clean) if @clean;
+ }
+
doit("rm","-f","debian/files")
unless excludefile("debian/files");
}