Return-Path: X-Original-To: apmail-yetus-commits-archive@minotaur.apache.org Delivered-To: apmail-yetus-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6052418C88 for ; Sun, 17 Apr 2016 17:14:50 +0000 (UTC) Received: (qmail 54816 invoked by uid 500); 17 Apr 2016 17:14:50 -0000 Delivered-To: apmail-yetus-commits-archive@yetus.apache.org Received: (qmail 54743 invoked by uid 500); 17 Apr 2016 17:14:50 -0000 Mailing-List: contact commits-help@yetus.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@yetus.apache.org Delivered-To: mailing list commits@yetus.apache.org Received: (qmail 54430 invoked by uid 99); 17 Apr 2016 17:14:49 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Apr 2016 17:14:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8C8EAE9E91; Sun, 17 Apr 2016 17:14:49 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aw@apache.org To: commits@yetus.apache.org Date: Sun, 17 Apr 2016 17:15:02 -0000 Message-Id: In-Reply-To: <454431215a98480b8d4cb2bd8781f5e6@git.apache.org> References: <454431215a98480b8d4cb2bd8781f5e6@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [14/23] yetus git commit: YETUS-353. runtime wrapper for build driver YETUS-353. runtime wrapper for build driver Signed-off-by: Allen Wittenauer Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/867bc9cb Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/867bc9cb Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/867bc9cb Branch: refs/heads/YETUS-156 Commit: 867bc9cb166f3cab0c57b6439781adb745c27523 Parents: 882b1b7 Author: Allen Wittenauer Authored: Tue Mar 29 17:12:43 2016 -0700 Committer: Allen Wittenauer Committed: Sun Apr 17 10:14:34 2016 -0700 ---------------------------------------------------------------------- build.sh | 4 +++- precommit/test-patch.sh | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/867bc9cb/build.sh ---------------------------------------------------------------------- diff --git a/build.sh b/build.sh index 8be3911..0eee9a3 100755 --- a/build.sh +++ b/build.sh @@ -167,11 +167,13 @@ cp -r shelldocs "${bin_tarball}/lib/" cp -r release-doc-maker "${bin_tarball}/lib/" cp -r precommit "${bin_tarball}/lib/" +ln -s test-patch.sh "${bin_tarball}/lib/precommit/qbt.sh" mkdir -p "${bin_tarball}/bin" for utility in shelldocs/shelldocs.py release-doc-maker/releasedocmaker.py \ - precommit/smart-apply-patch.sh precommit/test-patch.sh + precommit/smart-apply-patch.sh precommit/test-patch.sh \ + precommit/qbt.sh do wrapper=${utility##*/} wrapper=${wrapper%.*} http://git-wip-us.apache.org/repos/asf/yetus/blob/867bc9cb/precommit/test-patch.sh ---------------------------------------------------------------------- diff --git a/precommit/test-patch.sh b/precommit/test-patch.sh index 23e7c3a..f3dbc92 100755 --- a/precommit/test-patch.sh +++ b/precommit/test-patch.sh @@ -25,6 +25,8 @@ fi this="${BASH_SOURCE-$0}" BINDIR=$(cd -P -- "$(dirname -- "${this}")" >/dev/null && pwd -P) +BINNAME=${this##*/} +BINNAME=${BINNAME%.sh} STARTINGDIR=$(pwd) USER_PARAMS=("$@") GLOBALTIMER=$(date +"%s") @@ -3031,7 +3033,11 @@ function import_core import_core -initialize "$@" +if [[ "${BINNAME}" =~ qbt ]]; then + initialize --empty-patch "$@" +else + initialize "$@" +fi prechecks