diff options
-rw-r--r-- | examples/B90lintian | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/examples/B90lintian b/examples/B90lintian index 57fcfc4..f2c692f 100644 --- a/examples/B90lintian +++ b/examples/B90lintian @@ -1,6 +1,18 @@ -#!/bin/bash -# example file to be used with --hookdir -# -# run lintian on generated deb files -apt-get install -y --force-yes lintian -lintian /tmp/buildd/*.deb +#!/bin/sh + +set -e + +install_packages() { + apt-get -y --force-yes install "$@" +} + +install_packages lintian + +echo "+++ lintian output +++" + +su -c "lintian -I --show-overrides /tmp/buildd/*.changes" - pbuilder +# use this version if you don't want lintian to fail the build +#su -c "lintian -I --show-overrides /tmp/buildd/*.changes; :" - pbuilder + +echo "+++ end of lintian output +++" + |