#!/bin/sh

BUILDDIR=`dirname $PWD`

cat > ~/.pbuilderrc <<EOT
export TMPDIR=/tmp
AUTO_DEBSIGN=yes
PKGNAME_LOGFILE=yes
BUILDRESULT=$BUILDDIR
EOT

# Aufruf für binary-only build:
#   pdebuild --debbuildopts "-B"
/usr/bin/pdebuild --pbuilder cowbuilder --debbuildopts "-S -i\.git -I.git $*" --debsign-k "Andreas Tille <tille@debian.org>" 
cd ..
lintian -i *.deb *.dsc
