From: Francois Fleuret Date: Sat, 14 Mar 2009 06:02:51 +0000 (+0100) Subject: *** empty log message *** X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=9e81a172c9af260e5ff383039774c244b6369ed0;p=selector.git *** empty log message *** --- diff --git a/mkdeb.sh b/mkdeb.sh new file mode 100755 index 0000000..d70c74a --- /dev/null +++ b/mkdeb.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +# +# selector is a simple shell command 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 . +# + +VERSION=1.0 + +TMP=`mktemp -d /tmp/deb.XXXXXX` + +for d in DEBIAN usr/bin usr/man/man1; do + mkdir -p ${TMP}/${d} +done + +cat > ${TMP}/DEBIAN/control < +Description: A command line dynamic string-matching +Architecture: i386 +Depends: libncurses5, libstdc++6, libc6, libgcc1 +EOF + +cp ./selector ${TMP}/usr/bin +cp ./selector.1 ${TMP}/usr/man/man1 + +dpkg-deb --build ${TMP} selector_${VERSION}_i386.deb + +rm -rf ${TMP}