summaryrefslogtreecommitdiff
path: root/bin/sbuild-preupload
blob: 9f6d465391803d14e7474bb01d67641e8f758097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/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-source` 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 \
               --no-run-lintian --run-piuparts --run-autopkgtest
        ;;
    *)
        eval dgit $dgit sbuild $sbuild \
             --no-run-lintian --run-piuparts --run-autopkgtest
esac

lintian