*** empty log message ***
authorFrancois Fleuret <francois@fleuret.org>
Sat, 14 Mar 2009 06:02:51 +0000 (07:02 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Sat, 14 Mar 2009 06:02:51 +0000 (07:02 +0100)
mkdeb.sh [new file with mode: 0755]

diff --git a/mkdeb.sh b/mkdeb.sh
new file mode 100755 (executable)
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 <francois.fleuret@idiap.ch>
+#
+#  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 <http://www.gnu.org/licenses/>.
+#
+
+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 <<EOF
+Package: selector
+Version: ${VERSION}
+Maintainer: Francois Fleuret <francois@fleuret.org>
+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}