#!/bin/sh

gzip -c9 < 1.1 > deb/usr/share/man/man1/version.1.gz
VERSION=$(version --read version.php --bump --show --write::2 version.php --write deb/DEBIAN/control)

fakeroot dpkg-deb -b deb/ version_$VERSION.deb
dpkg-sig -s builder -k include-once -v version_$VERSION.deb
