Removed my professional mail address.
[selector.git] / mkdeb.sh
index 63e225e..55ef95e 100755 (executable)
--- a/mkdeb.sh
+++ b/mkdeb.sh
@@ -5,7 +5,7 @@
 #  dynamic pattern-matching.
 #
 #  Copyright (c) 2009 Francois Fleuret
-#  Written by Francois Fleuret <francois.fleuret@idiap.ch>
+#  Written by Francois Fleuret <francois@fleuret.org>
 #
 #  This file is part of selector.
 #
 # This script creates the Debian package. The way it does it is
 # probably not very conventional. I am open to suggestions.
 
-# Depends: ${shlibs:Depends}
-
-VERSION=1.0-R`git log|grep ^commit|wc -l`
+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`
 
@@ -39,7 +39,7 @@ for d in DEBIAN ${BIN_PATH} ${MAN_PATH}; do
     mkdir -p ${TMP}/${d}
 done
 
-LIB_DEPENDS=$(dpkg-shlibdeps -O ./selector|grep Depends|sed -e "s/^.*Depends=//")
+LIB_DEPENDS=$(dpkg-shlibdeps -O ./selector | grep Depends | sed -e "s/^.*Depends=//")
 
 cat > ${TMP}/DEBIAN/control <<EOF
 Package: selector
@@ -53,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}