X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mkdeb.sh;h=04baa3a45f23f2c40a599136fe526b10cbcb9cee;hb=541825e2a78ccbfb073a9476c57ccacb1767ba90;hp=b0ec56b870c023eb03d93f9eda217db8f3a3e847;hpb=ab0c1dd02ae593bd9640f4def4470e29e8706531;p=selector.git diff --git a/mkdeb.sh b/mkdeb.sh index b0ec56b..04baa3a 100755 --- a/mkdeb.sh +++ b/mkdeb.sh @@ -25,7 +25,10 @@ # This script creates the Debian package. The way it does it is # probably not very conventional. I am open to suggestions. -VERSION=1.0 +# Depends: ${shlibs:Depends} + +VERSION=1.0-R`git log|grep ^commit|wc -l` +PACKAGE=/tmp/selector_${VERSION}_i386.deb make -k @@ -46,8 +49,8 @@ Architecture: i386 Depends: libncurses5, libstdc++6, libc6, libgcc1 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 ';', the display is updated in real time - to show only the lines containing all the said strings. The main + list of strings separated by ';' or a regexp, the display is updated + in real time to show only the lines with matching content. The main usage of selector is as an efficient search in the shell command history. With the correct option, it will inject the selected line into the virtual tty input buffer, hence allowing the user to edit @@ -58,6 +61,8 @@ cp ./selector ${TMP}/usr/bin cp ./selector.1 ${TMP}/usr/share/man/man1 gzip ${TMP}/usr/share/man/man1/selector.1 -dpkg-deb --build ${TMP} /tmp/selector_${VERSION}_i386.deb +dpkg-deb --build ${TMP} ${PACKAGE} + +dpkg --contents ${PACKAGE} rm -rf ${TMP}