diff options
author | joey <joey> | 2001-06-01 18:26:18 +0000 |
---|---|---|
committer | joey <joey> | 2001-06-01 18:26:18 +0000 |
commit | 6eae7e888fb1fa5cf594cc116ea5daee9ee9512a (patch) | |
tree | 60afe4f9e62965e7723fea8ece4a85c9869d9ba1 /dh_makeshlibs | |
parent | 5e4b47dc3e23c862f7af2428fcade51acbfb9b69 (diff) | |
download | debhelper-6eae7e888fb1fa5cf594cc116ea5daee9ee9512a.tar.gz |
r474: * Added -X flag to dh_makeshlibs, for packages with wacky plugins that
look just like shared libs, but are not.
Diffstat (limited to 'dh_makeshlibs')
-rwxr-xr-x | dh_makeshlibs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/dh_makeshlibs b/dh_makeshlibs index 346a5f5a..bb1d8acd 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -11,7 +11,7 @@ use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS - dh_makeshlibs [debhelper options] [-mmajor] [-V[dependancies]] [-n] + dh_makeshlibs [debhelper options] [-mmajor] [-V[dependancies]] [-n] [-Xitem] =head1 DESCRIPTION @@ -49,6 +49,11 @@ information needed (be sure to include the package name). 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. + =back =head1 EXAMPLES @@ -89,7 +94,11 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # packages. This may have a few false positives, which is ok, # because only if we can get a library name and a major number from # objdump is anything actually added. - open (FIND, "find $tmp -type f -name '*.so*' |"); + my $exclude=''; + if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') { + $exclude="! \\( $dh{EXCLUDE_FIND} \\) "; + } + open (FIND, "find $tmp -type f -name '*.so*' $exclude |"); while (<FIND>) { my ($library, $major); my $objdump=`objdump -p $_`; |