X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mkdeb.sh;h=dff4880469e6ce5342df09d012e897fdf5251575;hb=c3973ff66bfb73b40d030fd8fb682007d0d05d5c;hp=04baa3a45f23f2c40a599136fe526b10cbcb9cee;hpb=8b0d331c335d51f61c1a56b98e05f91bd53a1441;p=selector.git 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