]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_builddeb
r522: * Set DH_ALWAYS_EXCLUDE=CVS and debhelper will exclude CVS directories
[debhelper.git] / dh_builddeb
index 180d0df1274625f0fa5e0f785db943c022c86dec..07029c076dbe22fc9696b40f9e8a62582a2df42d 100755 (executable)
@@ -11,7 +11,7 @@ use Debian::Debhelper::Dh_Lib;
 
 =head1 SYNOPSIS
 
-B<dh_builddeb> [S<I<debhelper options>>] [B<--destdir=>I<directory>] [B<name=>I<filename>] [S<B<--> I<params>>]
+B<dh_builddeb> [S<I<debhelper options>>] [B<--destdir=>I<directory>] [B<--name=>I<filename>] [S<B<--> I<params>>]
 
 =head1 DESCRIPTION
 
@@ -59,6 +59,9 @@ else {
 
 foreach my $package (@{$dh{DOPACKAGES}}) {
        my $tmp=tmpdir($package);
+       if (exists $ENV{DH_ALWAYS_EXCLUDE} && length $ENV{DH_ALWAYS_EXCLUDE}) {
+               complex_doit("find $tmp -name $ENV{DH_ALWAYS_EXCLUDE} | xargs rm -rf");
+       }
        doit("dpkg","--build",$tmp,"$dh{DESTDIR}$dh{FILENAME}",@{$dh{U_PARAMS}});
 }