From 6c982fc933772ff73c3db06b806456043d17dc57 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Sat, 14 Mar 2009 11:43:42 +0100 Subject: [PATCH] Changed the location of the man page to /usr/share and added the gzipping. --- mkdeb.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/mkdeb.sh b/mkdeb.sh index d70c74a..3464f29 100755 --- a/mkdeb.sh +++ b/mkdeb.sh @@ -24,24 +24,38 @@ VERSION=1.0 +make -k + TMP=`mktemp -d /tmp/deb.XXXXXX` -for d in DEBIAN usr/bin usr/man/man1; do +for d in DEBIAN usr/bin usr/share/man/man1; do 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 + cat > ${TMP}/DEBIAN/control < -Description: A command line dynamic string-matching 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 + 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. EOF cp ./selector ${TMP}/usr/bin -cp ./selector.1 ${TMP}/usr/man/man1 +cp ./selector.1 ${TMP}/usr/share/man/man1 +gzip ${TMP}/usr/share/man/man1/selector.1 -dpkg-deb --build ${TMP} selector_${VERSION}_i386.deb +dpkg-deb --build ${TMP} /tmp/selector_${VERSION}_i386.deb rm -rf ${TMP} -- 2.39.5