From e48ddf80392916dcc33514594410d84f34940f71 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 18 Mar 2010 18:43:27 +0100 Subject: [PATCH] Removed the ugly script to make a Debian package. --- mkdeb.sh | 74 -------------------------------------------------------- 1 file changed, 74 deletions(-) delete mode 100755 mkdeb.sh diff --git a/mkdeb.sh b/mkdeb.sh deleted file mode 100755 index a8ab485..0000000 --- a/mkdeb.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash - -# -# 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 -# -# This file is part of selector. -# -# selector is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 3 as -# published by the Free Software Foundation. -# -# selector is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with selector. If not, see . -# - -# 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.1 -PACKAGE=/tmp/selector_${VERSION}_i386.deb - -BIN_PATH="usr/bin" -MAN_PATH="usr/share/man/man1" - -make -j -k || exit 1 - -strip selector - -TMP=`mktemp -d /tmp/deb.XXXXXX` - -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 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 tty input buffer, allowing the user to edit the line and - execute it as a standard command. -EOF - -cp ./selector ${TMP}/${BIN_PATH} -cp ./selector.1 ${TMP}/${MAN_PATH} -gzip ${TMP}/${MAN_PATH}/selector.1 - -dpkg-deb --build ${TMP} ${PACKAGE} - -dpkg --contents ${PACKAGE} - -rm -rf ${TMP} -- 2.39.5