Return-Path: X-Original-To: apmail-brooklyn-commits-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-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 C502518E53 for ; Thu, 17 Mar 2016 12:54:59 +0000 (UTC) Received: (qmail 9186 invoked by uid 500); 17 Mar 2016 12:54:59 -0000 Delivered-To: apmail-brooklyn-commits-archive@brooklyn.apache.org Received: (qmail 9120 invoked by uid 500); 17 Mar 2016 12:54:59 -0000 Mailing-List: contact commits-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list commits@brooklyn.apache.org Received: (qmail 9045 invoked by uid 99); 17 Mar 2016 12:54:59 -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; Thu, 17 Mar 2016 12:54:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 60868DFFAB; Thu, 17 Mar 2016 12:54:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: heneveld@apache.org To: commits@brooklyn.apache.org Date: Thu, 17 Mar 2016 12:55:03 -0000 Message-Id: <930b8df2733e449cb40e9575eff50b96@git.apache.org> In-Reply-To: <0d41a24c394149079b2aa793ce3b2ebf@git.apache.org> References: <0d41a24c394149079b2aa793ce3b2ebf@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [05/16] brooklyn-dist git commit: Make release script: submodule fixes Make release script: submodule fixes git clean all submodules and display commit IDs for all submodules. Project: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/commit/7dea96ad Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/tree/7dea96ad Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/diff/7dea96ad Branch: refs/heads/master Commit: 7dea96ad863c52d46476d79cac4bced592098bfc Parents: de1c425 Author: Richard Downer Authored: Wed Mar 16 16:01:46 2016 +0000 Committer: Richard Downer Committed: Wed Mar 16 16:09:36 2016 +0000 ---------------------------------------------------------------------- release/make-release-artifacts.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-dist/blob/7dea96ad/release/make-release-artifacts.sh ---------------------------------------------------------------------- diff --git a/release/make-release-artifacts.sh b/release/make-release-artifacts.sh index d2257c4..c15fdaa 100755 --- a/release/make-release-artifacts.sh +++ b/release/make-release-artifacts.sh @@ -145,9 +145,13 @@ fi # A GPG no-op, but causes the password request to happen. It should then be cached by gpg-agent. gpg2 -o /dev/null --sign /dev/null +# Discover submodules +submodules="$( perl -n -e 'if ($_ =~ /path += +(.*)$/) { print $1."\n" }' < .gitmodules )" +modules=". ${submodules}" + ############################################################################### # Clean the workspace -git clean -dxf +for module in ${modules}; do ( cd $module && git clean -dxf ); done ############################################################################### # Source release @@ -240,4 +244,6 @@ set +x echo "The release is done - here is what has been created:" ls ${artifact_dir} echo "You can find these files in: ${artifact_dir}" -echo "The git commit ID for the voting emails is: $( git rev-parse HEAD )" +echo "The git commit IDs for the voting emails are:" +echo -n "brooklyn: " && git rev-parse HEAD +git submodule --quiet foreach 'echo -n "${name}: " && git rev-parse HEAD'