diff options
author | joey <joey> | 1999-08-17 04:34:25 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:34:25 +0000 |
commit | d079e6683cfcbef6a979eb7a02780eebdf480a74 (patch) | |
tree | 7cd6ba28701185b0facf84b98b9f4f92f56a8c3a /dh_shlibdeps | |
parent | dd838eee7e75da018b2722f0ce4dbccd9f6d1a5d (diff) | |
download | debhelper-d079e6683cfcbef6a979eb7a02780eebdf480a74.tar.gz |
r12: Initial Import
Diffstat (limited to 'dh_shlibdeps')
-rwxr-xr-x | dh_shlibdeps | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dh_shlibdeps b/dh_shlibdeps new file mode 100755 index 00000000..e30c4a5b --- /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 |