From patchwork Mon Feb 11 13:04:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 1039794 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="h9YXIdA9"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43ymVv0B5xz9sMp for ; Tue, 12 Feb 2019 00:15:34 +1100 (AEDT) Received: from localhost ([127.0.0.1]:50044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtBQq-00064g-PR for incoming@patchwork.ozlabs.org; Mon, 11 Feb 2019 08:15:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtBHg-0007Xq-Rw for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:06:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtBHf-0004EC-4G for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:06:04 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:33567) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtBHd-0003mF-8V for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:06:02 -0500 Received: by mail-wr1-x42b.google.com with SMTP id i12so267775wrw.0 for ; Mon, 11 Feb 2019 05:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DzjYK0ZXZnX/qRi5iTRBEhfDPhPL4DBoHWv6xqMDdt0=; b=h9YXIdA9NtTeLqLmKnnnbs3PkJRLVGzjXC+PFXNXlkpAXq9NsLsMI7i7/Po0w66qQk GT2r36wfDlnrmqu6BwvVrKex/tMIUKmOSl0wvUnZVzNJgHLSJyEZPp1hZyLbNox5jz6I uULoehUJOO56h2gwCWRQlDHey43xE+sviAsgpRJ22tvnC6AuXL36hEoaPaHMGK2eIrm5 YKJJjKW5hyOC5XaWqb9TmqF+ceqqMBax8VfGTWIieLxzGWpvfwK0XQD9a4wYmHbFopMH IaExNtHu/X3xClFzTN7dViTdsFR7kZcfMWSW/npOms/WCxYUQYlMI/BhH1pZj7+A1+Rq VgYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DzjYK0ZXZnX/qRi5iTRBEhfDPhPL4DBoHWv6xqMDdt0=; b=m5kw2Vz7yctCJXK0RKeAB2qi5cPcryQEW87WN3ahx5ARRl0LUzL++7P6bgacd21zdd ykVEmRFMB/WHgkCM1j4ddj26kTBoKSkHFfmESiUe7B5WAKiGVjs05b6sYHxW88RiM0in VkkvSY3ztPPpjApH/oStD2GSu7cFelgNanmU4KLgYMPCX80yJ1Z9LTUi5dcp+HdD9N5n TsdK4ngNzlMseAV4dDPrfX0KZ287Cay8GJy89OD2kS+//MHP1tnaiJJafDHEgdc/v/bw dYqLkkeSfS1WRntUzwxN5IvsawNsw8OxwPYuuzMKpwo/eyzSHsAHChTUpQpaJmVdmNDB 4H1Q== X-Gm-Message-State: AHQUAuYNS6pCtFxFtLwe+XsNVl4Lh3gReiIGaXC8BHYw+20oq7b9w4D/ eSeMe3TuU8eRjLcbfChJwmh4mILjgZo= X-Google-Smtp-Source: AHgI3Ia5O4tAnY6djmdjRZlvWQNys3HmF9WuFyppURl5UoPT57/tvn4z/AKHF0Ea8j1sGGT/CZZLWg== X-Received: by 2002:a5d:4686:: with SMTP id u6mr3301683wrq.206.1549890314752; Mon, 11 Feb 2019 05:05:14 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id k2sm1132608wmj.45.2019.02.11.05.05.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Feb 2019 05:05:10 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 52EE91FF86; Mon, 11 Feb 2019 13:05:07 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Mon, 11 Feb 2019 13:04:55 +0000 Message-Id: <20190211130507.8710-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211130507.8710-1-alex.bennee@linaro.org> References: <20190211130507.8710-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b Subject: [Qemu-devel] [PULL 06/18] archive-source.sh: Clone the submodules locally X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé We cloned the QEMU repository from the local storage. Since the submodules are also available there, clone them too. This is quicker and reduce network use. Signed-off-by: Philippe Mathieu-Daudé [AJB: incorporated review suggestions from danpb] Signed-off-by: Alex Bennée diff --git a/scripts/archive-source.sh b/scripts/archive-source.sh index 6eed2a29bd..d3a88f71e9 100755 --- a/scripts/archive-source.sh +++ b/scripts/archive-source.sh @@ -38,6 +38,13 @@ else fi git clone --shared . "$vroot_dir" test $? -ne 0 && error "failed to clone into '$vroot_dir'" +for sm in $submodules; do + if test -d "$sm/.git" + then + git clone --shared "$sm" "$vroot_dir/$sm" + test $? -ne 0 && error "failed to clone submodule $sm" + fi +done cd "$vroot_dir" test $? -ne 0 && error "failed to change into '$vroot_dir'"