aboutsummaryrefslogtreecommitdiff
path: root/pdebuild
blob: bc38aae86ccd40a7d78dfecd25eae50a3caa66df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash
set -e

if ! test -d ./debian ; then
    if test -d ../debian; then
	cd ..;
    else
	echo "This is (probably) not a Debian source package directory."
    fi
fi;
. /usr/lib/pbuilder/pbuilder-checkparams
$BUILDSOURCEROOTCMD dpkg-buildpackage -S -us -uc || true
$PBUILDERROOTCMD pbuilder build "$@" ../$(dpkg-parsechangelog|sed -n 's/^Source: //p')_$(dpkg-parsechangelog|sed -n 's/^Version: \(.*:\|\)//p').dsc