Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB3B7EFB8 for ; Tue, 28 May 2013 00:01:00 +0000 (UTC) Received: (qmail 35948 invoked by uid 500); 28 May 2013 00:01:00 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 35891 invoked by uid 500); 28 May 2013 00:01:00 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 35873 invoked by uid 99); 28 May 2013 00:01:00 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 May 2013 00:01:00 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 904F689B40D; Tue, 28 May 2013 00:00:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aharui@apache.org To: commits@flex.apache.org Date: Tue, 28 May 2013 00:01:00 -0000 Message-Id: <37a052294e7247b1a2aa11fef521cd14@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/2] git commit: [flex-sdk] [refs/heads/develop] - Try for loop to test for existence of patches Try for loop to test for existence of patches Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/9ab1de70 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/9ab1de70 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/9ab1de70 Branch: refs/heads/develop Commit: 9ab1de703e6183eaba64fa26f38afa67b916d6c3 Parents: 4b0077b Author: Alex Harui Authored: Tue May 28 00:59:35 2013 +0100 Committer: Alex Harui Committed: Tue May 28 00:59:35 2013 +0100 ---------------------------------------------------------------------- test_patch_by_email.sh | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/9ab1de70/test_patch_by_email.sh ---------------------------------------------------------------------- diff --git a/test_patch_by_email.sh b/test_patch_by_email.sh index a1fc765..0340f67 100644 --- a/test_patch_by_email.sh +++ b/test_patch_by_email.sh @@ -29,14 +29,18 @@ then cd mustella/utilities/PatchExtractor/src echo "launching patch extractor" "$AIR_HOME/bin/adl" -runtime "$AIR_HOME/runtimes/air/win" PatchExtractor-app.xml -- c:/cygwin/var/spool/mail/mustellarunner -rc=$? -if [[ $rc != 0 ]] ; then - cd ../../../.. +cd ../../../.. +gotone=0 +for (file in *.patch) +do + git pull --rebase + gotone=1 + break; +done +if [ gotone == 0 ] ; then echo "no patches" - exit $rc + exit 2 fi -cd ../../../.. -git pull --rebase for file in *.patch do