*** empty log message ***
[selector.git] / mkdeb.sh
1 #!/bin/bash
2
3 #
4 #  selector is a simple shell command for selection of strings with a
5 #  dynamic pattern-matching.
6 #
7 #  Copyright (c) 2009 Francois Fleuret
8 #  Written by Francois Fleuret <francois.fleuret@idiap.ch>
9 #
10 #  This file is part of selector.
11 #
12 #  selector is free software: you can redistribute it and/or modify
13 #  it under the terms of the GNU General Public License version 3 as
14 #  published by the Free Software Foundation.
15 #
16 #  selector is distributed in the hope that it will be useful, but
17 #  WITHOUT ANY WARRANTY; without even the implied warranty of
18 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 #  General Public License for more details.
20 #
21 #  You should have received a copy of the GNU General Public License
22 #  along with selector.  If not, see <http://www.gnu.org/licenses/>.
23 #
24
25 VERSION=1.0
26
27 TMP=`mktemp -d /tmp/deb.XXXXXX`
28
29 for d in DEBIAN usr/bin usr/man/man1; do
30     mkdir -p ${TMP}/${d}
31 done
32
33 cat > ${TMP}/DEBIAN/control <<EOF
34 Package: selector
35 Version: ${VERSION}
36 Maintainer: Francois Fleuret <francois@fleuret.org>
37 Description: A command line dynamic string-matching
38 Architecture: i386
39 Depends: libncurses5, libstdc++6, libc6, libgcc1
40 EOF
41
42 cp ./selector ${TMP}/usr/bin
43 cp ./selector.1 ${TMP}/usr/man/man1
44
45 dpkg-deb --build ${TMP} selector_${VERSION}_i386.deb
46
47 rm -rf ${TMP}