From ed032dcadfb52bed9bfc5fe2e4dfde1f8e034b34 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 12 Nov 2000 21:31:01 +0000 Subject: r388: * Ok, I tihnk we have a db3 fix that will really work now. --- dh_makeshlibs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dh_makeshlibs') diff --git a/dh_makeshlibs b/dh_makeshlibs index a9770717..6c708e86 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -15,7 +15,12 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { open (FIND, "find $TMP -xtype f -name '*.so.*' |"); while () { chomp; - ($library, $major)=m#.*/(.*)\.so\.(\d*)\.?#; + # The second evil regexp is for db3, whose author should + # be shot. + if (m#.*/(.*)\.so\.(\d*)\.?# || m#.*/(.*)-(\S+)\.so$#) { + $library = $1; + $major = $2; + } if (defined($dh{M_PARAMS}) && $dh{M_PARAMS} ne '') { $major=$dh{M_PARAMS}; } -- cgit v1.2.3