From: Francois Fleuret Date: Mon, 6 Apr 2009 06:06:17 +0000 (+0200) Subject: Uses dpkg-shlibdeps to compute the library dependences. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=47ec1aa34d9c7e26adf1fe73c02278acf045b13d;p=selector.git Uses dpkg-shlibdeps to compute the library dependences. --- 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