aboutsummaryrefslogtreecommitdiff
path: root/examples/B90lintian
blob: 3f48ab9ac24b3eb810ad3b71c64eb910e5e2a03e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

set -e

BUILDDIR="${BUILDDIR:-/tmp/buildd}"

install_packages() {
    apt-get -y "${APTGETOPT[@]}" install "$@"
}

install_packages lintian

echo "+++ lintian output +++"

su -c "lintian -I --show-overrides "$BUILDDIR"/*.changes" - pbuilder
# use this version if you don't want lintian to fail the build
#su -c "lintian -I --show-overrides "$BUILDDIR"/*.changes; :" - pbuilder

echo "+++ end of lintian output +++"