#!/bin/bash
if [ -d unpack ]; then
sudo rm -rf unpack
fi
mkdir -p unpack/DEBIAN
cp debian/control unpack/DEBIAN/
cp -r usr unpack/
cd unpack
find . -type f | xargs md5sum > DEBIAN/md5sums
cd ..
apt deb unpack
mv unpack.deb sonist-1.0.0.deb