Pages

Friday, July 8, 2011

Lintian pbuilder hook example

An example of a pbuilder hook to run Lintian  during a package build, posted to the Debian Mentors list in the "Re:how to get people to run lintian on their packages" thread:

While we're sharing, here's a pbuilder hook that I (among others) use:

$ cat ~/.pbuilder-hooks/B20lintian#!/bin/bash## run lintian on generated deb filesecho "########  STARTING LINTIAN HOOK  ########"apt-get install -y --force-yes lintianlintian -iIEm --pedantic --color=auto --allow-root /tmp/buildd/*.debecho "########  FINISHED LINTIAN HOOK  ########"

No comments:

Post a Comment