From patchwork Tue Jan 30 19:33:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 126298 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp30096ljc; Tue, 30 Jan 2018 11:37:58 -0800 (PST) X-Google-Smtp-Source: AH8x224SuWnheobNY9oUesreP/ds74AElNFpggTQ6ts1ztY1Zg+0Ri2LFkQthE+R8KrkaQ5si5Lz X-Received: by 10.37.192.70 with SMTP id c67mr10032748ybf.133.1517341078186; Tue, 30 Jan 2018 11:37:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517341078; cv=none; d=google.com; s=arc-20160816; b=KGU9MkW/3+UoWyKGLpHn+3rxC8THRTLCepoN5HT48A63+SVwKo5HDQWrRBMQqd0xvU DAfzu6FnA5cps2PMvDM+YkTdqOrSh4bjz7p3NWwNk65SmkhPOwvZI/Xr/zOS2976U2xz 8qiBahuHbxky6qy7NApKzz5mt50OvQNZ+MRyftEOlwE9PhjBS2ZOg5w5E+xhSHesPL1M Diogt9GvQqHt7mre4JXytH8b3PokBrqvrjcKXfIrLq4Ti6EF7rYL1DaBw79/tw5ZZmm4 y4FF8TW3JTkA9KfOCXVQzpGdrOknjXvfl3JnIXZw80H6od4Iiq8oukHffQGcJNtTF1gb GxpQ== 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:message-id:date:to:from :arc-authentication-results; bh=UlBB30DBC8XCUUEJU0f+6804ywxn2558NvrWXokBdVo=; b=EZtPTfg9QBWK9+gyyMJK/xnkzPv0w0JFA1pURnaZGVIWsdFNV6TOfRemSRzknQiGA+ Ih+UntZuJPaLntVj5ZJqfqsnAuclnl2Fm3PwyCJCYDDIK/5bdRkEt5TGEZ6OpT3IYRrM FTZV+jbtyWmbxWHE4vEVGy5Oioh2cee1M6+eBoSvDGEGUEG4nn/QcN38v+C45Umd7Jhf 2lDltPJ+4A24GaI9sMshvvzIDTPx18SE67G07RW1PT+j2ZyU5f4o7Rn3boxHn45OPOpS xnhd1nrYv/UjwBsazIzAvIrrGXut/ekEA0O5WVvDch/Y8vbRYqMds/3iL0KC5Uz+DZIF i/nw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id x123si571365ybg.634.2018.01.30.11.37.57 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 30 Jan 2018 11:37:58 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:57992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egbjB-0007ZX-Jm for patch@linaro.org; Tue, 30 Jan 2018 14:37:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egbgG-0006Y7-0p for qemu-devel@nongnu.org; Tue, 30 Jan 2018 14:36:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egbfB-00013P-Vs for qemu-devel@nongnu.org; Tue, 30 Jan 2018 14:34:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49780) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1egbfB-0000qN-NU for qemu-devel@nongnu.org; Tue, 30 Jan 2018 14:33:49 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6CE30776C2; Tue, 30 Jan 2018 19:33:42 +0000 (UTC) Received: from colepc.redhat.com (ovpn-116-36.phx2.redhat.com [10.3.116.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8469160BE9; Tue, 30 Jan 2018 19:33:41 +0000 (UTC) From: Cole Robinson To: qemu-devel@nongnu.org Date: Tue, 30 Jan 2018 14:33:35 -0500 Message-Id: <2a250f8d59f1eedd7728d94a9dae1a6de54d0c14.1517340741.git.crobinso@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 30 Jan 2018 19:33:42 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v3] scripts/make-release: Don't archive .git files 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: peter.maydell@linaro.org, thuth@redhat.com, mdroth@linux.vnet.ibm.com, Markus Armbruster , Cole Robinson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As was last done in 379e21c25, we don't want .git files for submodules here, which we aren't presently doing for capstone and keycodemapdb. Rather than delete the offending files before archiving, ask tar to --exclude=.git Signed-off-by: Cole Robinson --- v2: Use armbru's --exclude suggestion, requires tweaking existing tar options a bit. v3: thuth's suggestion to use --exclude for both tar commands scripts/make-release | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.14.3 Reviewed-by: Thomas Huth diff --git a/scripts/make-release b/scripts/make-release index 3917df7142..04fa9defdc 100755 --- a/scripts/make-release +++ b/scripts/make-release @@ -19,11 +19,10 @@ pushd ${destination} git checkout "v${version}" git submodule update --init (cd roms/seabios && git describe --tags --long --dirty > .version) -rm -rf .git roms/*/.git dtc/.git pixman/.git # FIXME: The following line is a workaround for avoiding filename collisions # when unpacking u-boot sources on case-insensitive filesystems. Once we # update to something with u-boot commit 610eec7f0 we can drop this line. -tar cfj roms/u-boot.tar.bz2 -C roms u-boot && rm -rf roms/u-boot +tar --exclude=.git -cjf roms/u-boot.tar.bz2 -C roms u-boot && rm -rf roms/u-boot popd -tar cfj ${destination}.tar.bz2 ${destination} +tar --exclude=.git -cjf ${destination}.tar.bz2 ${destination} rm -rf ${destination}