summaryrefslogtreecommitdiff
path: root/dh_shlibdeps
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:34:24 +0000
committerjoey <joey>1999-08-17 04:34:24 +0000
commit1e6dea44772a0c1f57e7cd50ff12e35a1cff0b96 (patch)
tree212e56dc8ea32cf27cd2a33ac901a92a701f063f /dh_shlibdeps
parentface7b5d7df5fb2b8f434bc7135f27b38329a5c5 (diff)
r11: Initial revision
Diffstat (limited to 'dh_shlibdeps')
-rwxr-xr-xdh_shlibdeps24
1 files changed, 24 insertions, 0 deletions
diff --git a/dh_shlibdeps b/dh_shlibdeps
new file mode 100755
index 0000000..e30c4a5
--- /dev/null
+++ b/dh_shlibdeps
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+#
+# Find dependancies. Simple dpkg-shlibdeps wrapper.
+
+PATH=debian:$PATH:/usr/lib/debhelper
+. dh_lib
+
+for PACKAGE in $DH_DOPACKAGES; do
+ TMP=`tmpdir $PACKAGE`
+ EXT=`pkgext $PACKAGE`
+
+ # Run dpkg-shlibdeps to generate dependancies.
+ filelist=""
+ for file in `find $TMP -type f \( -perm +111 -or -name "*.so*" \) | tr "\n" " "` ; do
+ case "`file $file`" in
+ *ELF*)
+ filelist="$file $filelist"
+ ;;
+ esac
+ done
+ if [ "$filelist" ]; then
+ doit "dpkg-shlibdeps -Tdebian/${EXT}substvars $DH_U_PARAMS $filelist"
+ fi
+done