]> git.donarmstrong.com Git - debhelper.git/commitdiff
r582: * Fix build with 077 umask. Closes: #187757
authorjoey <joey>
Sun, 6 Apr 2003 18:33:01 +0000 (18:33 +0000)
committerjoey <joey>
Sun, 6 Apr 2003 18:33:01 +0000 (18:33 +0000)
   * Allow colons between multiple items in DH_ALWAYS_EXCLUDE.

Debian/Debhelper/Dh_Lib.pm
debhelper.pod
debian/changelog
debian/rules
dh_builddeb

index 41b7a6346882f0cfb2d1965f8686a3cc6f33ad81..345630d75d59695d9a3b54506a318c39bf417f97 100644 (file)
@@ -45,7 +45,7 @@ sub init {
 
        # Another way to set excludes.
        if (exists $ENV{DH_ALWAYS_EXCLUDE} && length $ENV{DH_ALWAYS_EXCLUDE}) {
-               push @{$dh{EXCLUDE}}, $ENV{DH_ALWAYS_EXCLUDE};
+               push @{$dh{EXCLUDE}}, split(":", $ENV{DH_ALWAYS_EXCLUDE});
        }
        
        # Generate EXCLUDE_FIND.
index e1a589c74ed6dd07ac3f859b1f192000b3d09511..56eb531af204f620109bba8c68fe16792b513050 100644 (file)
@@ -376,6 +376,9 @@ tarball that (unwisely) includes CVS directories, you might want to export
 DH_ALWAYS_EXCLUDE=CVS in debian/rules, to make it take effect wherever
 your package is built.
 
+Multiple things to exclude can be separated with colons, as in
+DH_ALWAYS_EXCLUDE=CVS:.svn
+
 =back
 
 =head1 SEE ALSO
index d2d1145310558340dd64341a42d0077b44be2b92..2222d3d8244d1cbe2e0270a832a8ef20f6ba6b23 100644 (file)
@@ -1,3 +1,10 @@
+debhelper (4.1.40) unstable; urgency=low
+
+  * Fix build with 077 umask. Closes: #187757
+  * Allow colons between multiple items in DH_ALWAYS_EXCLUDE.
+
+ -- Joey Hess <joeyh@debian.org>  Sun,  6 Apr 2003 14:30:48 -0400
+
 debhelper (4.1.39) unstable; urgency=low
 
   * Add calls to dh_installcatalogs to example rules files. Closes: #186819
index 204cb5a15a4f84048e9d4d5fde3fe77eae14e226..ffb2c9ba536dcdc8e3b6f47bf0124ebaf6dfd2fd 100755 (executable)
@@ -39,9 +39,9 @@ build-stamp:
                                s/#LIST#/$$collect/; \
                                print; \
                        }; \
-               }' `find . -type f -perm +1 -maxdepth 1 -name "dh_*" | sort` > debhelper.7
+               }' `find . -type f -perm +100 -maxdepth 1 -name "dh_*" | sort` > debhelper.7
        # Turn all executables into man pages.
-       find . -type f -perm +1 -maxdepth 1 -name "dh_*" \
+       find . -type f -perm +100 -maxdepth 1 -name "dh_*" \
                -exec pod2man -c Debhelper -r "$(VERSION)" {} {}.1 \;
        printf "package Debian::Debhelper::Dh_Version;\n\$$version='$(VERSION)';" > \
                Debian/Debhelper/Dh_Version.pm
index a634be2efca5a20e6a1993245341e59d77a929fe..3d9f9d86e88130aef220002e4edb421eb3f6b252 100755 (executable)
@@ -60,7 +60,8 @@ 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");
+               complex_doit("find $tmp -name $_ | xargs rm -rf")
+                       foreach split(":", $ENV{DH_ALWAYS_EXCLUDE});
        }
        doit("dpkg-deb", @{$dh{U_PARAMS}}, "--build", $tmp, $dh{DESTDIR}.$dh{FILENAME});
 }