]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_makeshlibs
r1590: * Converted several chown 0.0 to chown 0:0 for POSIX 200112.
[debhelper.git] / dh_makeshlibs
index 7a4e7b1dc856ba2ea61168b399e1aa97ef8033e8..a888aecaa5e86f3378c7300a889bbb81cfaed23d 100755 (executable)
@@ -57,8 +57,8 @@ Do not modify postinst/postrm scripts.
 
 =item B<-X>I<item>, B<--exclude=>I<item>
 
-Exclude files that contain "item" anywhere in their filename from
-being treated as shared libraries.
+Exclude files that contain "item" anywhere in their filename or directory 
+from being treated as shared libraries.
 
 =back
 
@@ -104,7 +104,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') {
                $exclude="! \\( $dh{EXCLUDE_FIND} \\) ";
        }
-       open (FIND, "find $tmp -type f -name '*.so*' $exclude |");
+       open (FIND, "find $tmp -type f \\( -name '*.so' -or -name '*.so.*' \\) $exclude |");
        while (<FIND>) {
                my ($library, $major);
                my $objdump=`objdump -p $_`;
@@ -166,7 +166,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
        if (-e "$tmp/DEBIAN/shlibs") {
                doit("chmod",644,"$tmp/DEBIAN/shlibs");
-               doit("chown","0.0","$tmp/DEBIAN/shlibs");
+               doit("chown","0:0","$tmp/DEBIAN/shlibs");
        }
 }