X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mkdeb.sh;h=bb1a8904d3d1a8ffec752de130d0aba52ef20839;hb=75aca494aa4c58b43d76c6a91b1b2670e4836182;hp=51d023aa04e808f200a7ad02d09f94b2cb50f252;hpb=a249ecc3eaf804c159f3e1efb31da118d783d2fb;p=selector.git diff --git a/mkdeb.sh b/mkdeb.sh index 51d023a..bb1a890 100755 --- a/mkdeb.sh +++ b/mkdeb.sh @@ -25,11 +25,13 @@ # This script creates the Debian package. The way it does it is # probably not very conventional. I am open to suggestions. -VERSION=1.0-R`git log | grep ^commit | wc -l | sed -e "s/[^0-9]//g"` +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` @@ -51,8 +53,8 @@ Description: A command line for dynamic string-matching 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}