# HG changeset patch # User Sean Farley # Date 2016-04-16 20:01:47 # Node ID 8797f03db5b6011d8d3dd766ec559feff14ea680 # Parent 837119bf7f01dece23e69e32d69631f1cd023e02 builddeb: add flag for a source-only deb This is required for building a ppa for ubuntu which following patches will use. diff --git a/contrib/builddeb b/contrib/builddeb --- a/contrib/builddeb +++ b/contrib/builddeb @@ -10,6 +10,7 @@ BUILD=1 CLEANUP=1 DISTID=`(lsb_release -is 2> /dev/null | tr '[:upper:]' '[:lower:]') || echo debian` CODENAME=`lsb_release -cs 2> /dev/null || echo unknown` +DEBFLAGS=-b while [ "$1" ]; do case "$1" in --distid ) @@ -30,6 +31,10 @@ while [ "$1" ]; do shift CLEANUP= ;; + --source-only ) + shift + DEBFLAGS=-S + ;; * ) echo "Invalid parameter $1!" 1>&2 exit 1 @@ -76,7 +81,7 @@ if [ "$BUILD" ]; then SRCFILE="mercurial_$(echo $debver | sed "s,-$node,,").orig.tar.gz" "$PWD/hg" archive $SRCFILE mv $SRCFILE .. - debuild -us -uc -i -I -b + debuild -us -uc -i -I $DEBFLAGS if [ $? != 0 ]; then echo 'debuild failed!' exit 1