]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_makeshlibs
r1655: * Added udeb support, as pioneered by di-packages-build. Understands
[debhelper.git] / dh_makeshlibs
index 7a4e7b1dc856ba2ea61168b399e1aa97ef8033e8..1d57b01eb0842c603d6c62a09abc131a96c900b2 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
 
@@ -86,6 +86,8 @@ Generates a shlibs file that looks something like:
 init();
 
 foreach my $package (@{$dh{DOPACKAGES}}) {
+       next if is_udeb($package);
+       
        my $tmp=tmpdir($package);
 
        my %seen;
@@ -104,7 +106,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 +168,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");
        }
 }