projects
/
selector.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the binary in the Makefile rule for installation.
[selector.git]
/
mkdeb.sh
diff --git
a/mkdeb.sh
b/mkdeb.sh
index
3464f29
..
dff4880
100755
(executable)
--- a/
mkdeb.sh
+++ b/
mkdeb.sh
@@
-22,7
+22,13
@@
# along with selector. If not, see <http://www.gnu.org/licenses/>.
#
# along with selector. If not, see <http://www.gnu.org/licenses/>.
#
-VERSION=1.0
+# 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`
+PACKAGE=/tmp/selector_${VERSION}_i386.deb
make -k
make -k
@@
-32,20
+38,18
@@
for d in DEBIAN usr/bin usr/share/man/man1; do
mkdir -p ${TMP}/${d}
done
mkdir -p ${TMP}/${d}
done
-# for l in `ldd selector | grep "=> /" | awk '{print $3}'`; 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 <<EOF
Package: selector
Version: ${VERSION}
Maintainer: Francois Fleuret <francois@fleuret.org>
Architecture: i386
cat > ${TMP}/DEBIAN/control <<EOF
Package: selector
Version: ${VERSION}
Maintainer: Francois Fleuret <francois@fleuret.org>
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
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
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
@@
-56,6
+60,8
@@
cp ./selector ${TMP}/usr/bin
cp ./selector.1 ${TMP}/usr/share/man/man1
gzip ${TMP}/usr/share/man/man1/selector.1
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}
rm -rf ${TMP}