#!/bin/sh # run a package build and the full suite of checks that I can do # locally before an upload. Generally I use this on an UNRELEASED # package and then use `dgit push` for the actual upload set -e dgit="" sbuild="" for key in "$@"; do case $key in --gbp|--dpm|--quilt=*) dgit="$dgit $key" shift ;; *) sbuild="$sbuild $key" shift ;; esac done case $(pwd) in *src/DHG_packages/p*) sbuild $sbuild --run-piuparts --run-autopkgtest ;; *) eval dgit $dgit sbuild $sbuild --run-piuparts --run-autopkgtest esac