summaryrefslogtreecommitdiff
path: root/dh_makeshlibs
diff options
context:
space:
mode:
Diffstat (limited to 'dh_makeshlibs')
-rwxr-xr-xdh_makeshlibs8
1 files changed, 6 insertions, 2 deletions
diff --git a/dh_makeshlibs b/dh_makeshlibs
index 0943ba57..6cf9c803 100755
--- a/dh_makeshlibs
+++ b/dh_makeshlibs
@@ -15,8 +15,12 @@ for PACKAGE in $DH_DOPACKAGES; do
for file in `find $TMP -type f -name "*.so*" | tr "\n" " "` ; do
LIBRARY=`expr $file : ".*/\(.*\)\.so\..*"` || true
VERSION=`expr $file : ".*/.*\.so\.\(.*\)"` || true
- MAJOR=`expr $VERSION : "\([0-9]*\)\."` || true
- LIBSTUB=`expr $file : "\(.*\/.*\.so\)\..*"` || true
+ if [ -z "$DH_M_PARAMS" ]; then
+ MAJOR=`expr $VERSION : "\([0-9]*\)\."` || true
+ else
+ MAJOR="$DH_M_PARAMS"
+ fi
+# LIBSTUB=`expr $file : "\(.*\/.*\.so\)\..*"` || true
if [ ! -d "$TMP/DEBIAN" ] ; then
doit "install -d $TMP/DEBIAN"
fi