From 47ec1aa34d9c7e26adf1fe73c02278acf045b13d Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Mon, 6 Apr 2009 08:06:17 +0200 Subject: [PATCH] Uses dpkg-shlibdeps to compute the library dependences. --- mkdeb.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.5