#!/bin/sh

vers=`cat B/DEBIAN/control | grep Version | sed s/'Version: '//`

make install DESTDIR=`pwd`/B &&
strip B/usr/bin/ksquirrel &&
strip B/usr/bin/ksquirrel-libs-configurator-real &&
strip B/usr/lib/trinity/libksquirrelpart.so &&
dpkg-deb -b B ksquirrel_${vers}_i386.deb &&
rm -rf B/usr &&
echo
ls -l ksquirrel_${vers}_i386.deb
echo