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: 157998 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2585640jaa; Mon, 11 Feb 2019 05:15:18 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib9q+Qjgip6JBr+BNYfjiD6zmq7wc+cWccCalpyaDyftXx5W7ZzC5p3ZEEVKMhvW4F7kfy4 X-Received: by 2002:a1c:7dd7:: with SMTP id y206mr4128984wmc.123.1549890918142; Mon, 11 Feb 2019 05:15:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549890918; cv=none; d=google.com; s=arc-20160816; b=1K5Ep6sjEmFSeu3B7FQF0dILYtV68QEeb2q1rLl69aPMW+ubIyaxehI3VWSo1GrL3q yOXEia7Mv/aB0yWVWVRRGCgF6k3lhgQVWbGF5vp/KESGcq/3k7ocPrL3X+LGftnzi3aO d/DOi9CF7qMEJQ0cxnQXm9PvS+Ypzxf0bcJ0G9hfgctMHilRrR+I242FwJynJaNUUFEo I/04pTyKZseAS2C1k45gDAUVyLABaHpjy4F0IBmHHj7nwfxk7cLlSh6sakvWE+eyQN68 WGe5cuMJ3a9ioswEHX4wPMrQOehs1i0GbBbkLR+KEwzBAlf0HOadUi3EBUxBzNbp9nVU X6eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=DzjYK0ZXZnX/qRi5iTRBEhfDPhPL4DBoHWv6xqMDdt0=; b=Jb7oBzy5jckQOF71GjeGKLkLhn0JfdcA18qXA7/gR7c5+rug/nrCzIEWshLK1cnH7I DDwcyTN5wz8RqNbsYWaSu+I/SCiPjbK98qy390jcG4CGP7jeaVWAAZML0+kXMZFUSOg0 FxhTPuae2jWTRqwYjuIzQu8bXxDlQRoQdg1WjRMmx3V5hf4iB4zOd7eqOpEjHjPiAvfP lDL1hlLBunXcinLWPrwuyuF3lIbylLN31NprNeXOtePKYGNIKhGDXO+J6XRNjRiOf44g nZqOn8aGZA1AifLbr7jLIsHPQf8eAGQQlMnFF3v0hgGOtlti7ERiifuMM2IOM+l12kLb T86A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=h9YXIdA9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s10si1842525wrt.376.2019.02.11.05.15.17 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 11 Feb 2019 05:15:18 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=h9YXIdA9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:50044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtBQb-00064g-2C for patch@linaro.org; Mon, 11 Feb 2019 08:15:17 -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-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+patch=linaro.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 -- 2.20.1 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'"