]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_clean
r593: * dh_clean: make -X work for debian/substvars file.
[debhelper.git] / dh_clean
index b0936ecb31fc25c51fc696430fb1900ec6c632b7..a3d8c7bec3f21b7991598a4850f5055f6b9ff114 100755 (executable)
--- a/dh_clean
+++ b/dh_clean
@@ -86,7 +86,8 @@ if (! $dh{D_FLAG}) {
 
        # Remove some files that were left around by older versions of
        # debhelper.
-       doit("rm","-f","debian/substvars");
+       doit("rm","-f","debian/substvars")
+               unless excludefile("debian/substvars");
        
        # See if some files that would normally be deleted are excluded.
        my $find_options='';