From: Francois Fleuret Date: Sun, 5 Apr 2009 11:18:37 +0000 (+0200) Subject: Now use the dpkg-shlibdeps command to automagically find the lib dependencies. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=4793cb14370b37b6ec83779b3cd29009af968c4d;p=selector.git Now use the dpkg-shlibdeps command to automagically find the lib dependencies. --- diff --git a/mkdeb.sh b/mkdeb.sh index 04baa3a..dff4880 100755 --- a/mkdeb.sh +++ b/mkdeb.sh @@ -38,15 +38,14 @@ for d in DEBIAN usr/bin usr/share/man/man1; do mkdir -p ${TMP}/${d} done -# LIBS=`ldd selector | grep "=> /" | awk '{print $3}'` -# DEPS=`for l in ${LIBS}; do dpkg -S $l; done | cut -f 1 -d: | sort | uniq` +LIB_DEPENDS=$(dpkg-shlibdeps -O ./selector|grep Depends|sed -e "s/^.*Depends=//") cat > ${TMP}/DEBIAN/control < Architecture: i386 -Depends: libncurses5, libstdc++6, libc6, libgcc1 +Depends: ${LIB_DEPENDS} Description: A command line for dynamic string-matching. This is a command line for dynamic string selection. As you type a list of strings separated by ';' or a regexp, the display is updated