From: martin f. krafft Date: Fri, 15 May 2009 09:13:35 +0000 (+0200) Subject: add binonly build support X-Git-Url: https://git.madduck.net/code/mbuild.git/commitdiff_plain/30ae46aab50796388cc5a4db807c7e3d872ad57c?ds=sidebyside add binonly build support --- 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"