#!/bin/bash VERSION=$(grep -oP '(?<=Version: ).*$' debian/DEBIAN/control) dpkg-deb --root-owner-group -b debian "foodoord_${VERSION}_all.deb"