Pages

Friday, July 8, 2011

Lintian pbuilder hook example

An example of a Lintian pbuilder hook was posted to the Debian Mentors mailing list in a thread about getting people to run Lintian .

  • Message:  http://lists.debian.org/debian-mentors/2011/07/msg00180.html
  • Thread Index:  http://lists.debian.org/debian-mentors/2011/07/threads.html#00180

 


Here it is as it was posted to the mailing list:

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


No comments:

Post a Comment