X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mkdeb.sh;h=d96e7aeb5a2b5f009825ecba05471f5644717c09;hb=e5cac5f305479e8c1003117cc226d6dea9f9adde;hp=cc69852d95b477138aca6ea4cf9c403463ff87bb;hpb=0011341d45f00444e2ba395bb749e1b39d94c276;p=selector.git diff --git a/mkdeb.sh b/mkdeb.sh index cc69852..d96e7ae 100755 --- a/mkdeb.sh +++ b/mkdeb.sh @@ -1,11 +1,11 @@ #!/bin/bash # -# selector is a simple shell command for selection of strings with a -# dynamic pattern-matching. +# selector is a simple command line utility for selection of strings +# with a dynamic pattern-matching. # # Copyright (c) 2009 Francois Fleuret -# Written by Francois Fleuret +# Written by Francois Fleuret # # This file is part of selector. # @@ -25,11 +25,15 @@ # This script creates the Debian package. The way it does it is # probably not very conventional. I am open to suggestions. +set -e + VERSION=1.0-R$(cat REVISION_NUMBER) PACKAGE=/tmp/selector_${VERSION}_i386.deb + BIN_PATH="usr/bin" MAN_PATH="usr/share/man/man1" -make -k + +make -j -k || exit 1 TMP=`mktemp -d /tmp/deb.XXXXXX` @@ -37,6 +41,8 @@ for d in DEBIAN ${BIN_PATH} ${MAN_PATH}; do mkdir -p ${TMP}/${d} done +mkdir -p debian/control + LIB_DEPENDS=$(dpkg-shlibdeps -O ./selector | grep Depends | sed -e "s/^.*Depends=//") cat > ${TMP}/DEBIAN/control < Architecture: i386 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 substrings separated by ';', or a regexp, the display is - updated in real time to show only the matching lines. The main usage - of selector is as an efficient search in the shell command +Description: A command line utility for dynamic string-matching + This is a command line utility for dynamic string selection. As you + type a list of substrings separated by ';', or a regexp, the display + is updated in real time to show only the matching lines. 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 - the line and execute it as a standard command. + into the tty input buffer, hence allowing the user to edit the line + and execute it as a standard command. EOF cp ./selector ${TMP}/${BIN_PATH}