From 30ae46aab50796388cc5a4db807c7e3d872ad57c Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 15 May 2009 11:13:35 +0200 Subject: [PATCH] add binonly build support --- sbuild-wrapper.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sbuild-wrapper.sh b/sbuild-wrapper.sh index c0fc8e6..243587d 100755 --- a/sbuild-wrapper.sh +++ b/sbuild-wrapper.sh @@ -57,11 +57,13 @@ usage() --dist & specify the target distribution (default: sid) --arch & specify the target architecture (default: $DEB_BUILD_ARCH) -sa & pass --force-orig-source to sbuild + -B & do a binary-only build -h|--help & show this output. -V|--version & show version information. _eof } +binonly=0 sbuild_args= schangesfile= arch= @@ -73,6 +75,7 @@ for opt in "$@"; do --arch=*) arch="${opt#--arch=}";; --dist=*) dist="${opt#--dist=}";; -sa) sbuild_args="${sbuild_args:+$sbuild_args }--force-orig-source";; + -B) binonly=1;; --*) sbuild_args="${sbuild_args:+$sbuild_args }$opt";; *_source.changes) if [ -z "$schangesfile" ]; then @@ -114,7 +117,9 @@ schangesfile="$schangesfile_basename" cd "$BUILDDIR" -sbuild $sbuild_args --arch="$arch" --arch-all --dist="$dist" --keyid=$KEYID \ +[ "$binonly" = 0 ] && sbuild_args="${sbuild_args:+$sbuild_args }--source --arch-all" + +sbuild $sbuild_args --arch="$arch" --dist="$dist" --keyid=$KEYID \ "$packagenameversion".dsc changesfile="${packagenameversion}_${arch}.changes" -- 2.39.5