From patchwork Sat Jan 6 21:56:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 123635 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp974849qgn; Sat, 6 Jan 2018 13:56:38 -0800 (PST) X-Google-Smtp-Source: ACJfBosv7Wg1DqhoyV9L38MV3vzDrhKreo/OIMdXOkgK4WSps++iSj/re5SCIMSYMA8VT1xSYxYp X-Received: by 10.129.133.4 with SMTP id v4mr3349804ywf.130.1515275798771; Sat, 06 Jan 2018 13:56:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515275798; cv=none; d=google.com; s=arc-20160816; b=LQmGIT/RyAuZEiNUTT/cFQ9IgDoom3/RnyjuvcK0Va3UaD9LsWz0yCuLUoSQepP1W4 aaTFxeTNwEI9XKeAy49wlVDJG06vZvHo2XO4nuPRoue+hrZlM3NK1SCqEyhhnKdvP4FE zb13P7aClyDZH9RAmTT1kDK1vLpWTGyTpmxUnSQvNAccbRCcrcBh73Iv1j419R7BXjdu PWl/p944xMo7RvQFb3Kay0zAUOJGXhhr9GqOs4E5rmF1HJDTUxS4FOIiYnNthPML32W8 WjxavK1hb9zdK+gUX6MbXL8RikUz7GIVkt6zzxuJxMBsCw5VEUx0T/DRZSv19tz9/vQ5 rI2A== 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=9pfygMGmte+a4GjzJfb24mgT+gVuQyTZ5U7EW6juL/U=; b=y76zvbLE4L4a94AMurT0bDJ+IaqSwS2k3sm7fSTcPanhKB/9F4FPCVVNTvdkHJ+VBv Z8UP6WqzOJfpE+Htfo4LIIdo8EnOMzSTlL+DBP59EBOayIslmSaEyJN/99EdSrWOq//j 0HKsikuuKc4LYEOgBrZLinZwOcBXLZPOTSxkGcZr6keimYNIvCV52UqKQsnUs/3yjbtD Og8fO/lo7v5JFbwyiefiSRz2wPhVMmVWIyPegcsHa7WjRjttAelYeiAk/DeNM+N+SLZK XFrnITcz2sIbIF4/WbBSMOkJeWuaOJY+gWSIhAhB0FBfdgTTsVHleHZdUD/JPFmjDpwx 33Qg== 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 i83si995398ybb.497.2018.01.06.13.56.38 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 06 Jan 2018 13:56:38 -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]:52036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXwSE-0003UV-BE for patch@linaro.org; Sat, 06 Jan 2018 16:56:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXwS1-0003UM-HD for qemu-devel@nongnu.org; Sat, 06 Jan 2018 16:56:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXwRy-0007kG-Bq for qemu-devel@nongnu.org; Sat, 06 Jan 2018 16:56:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36906) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eXwRy-0007i3-5m for qemu-devel@nongnu.org; Sat, 06 Jan 2018 16:56:22 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4B83281127; Sat, 6 Jan 2018 21:56:20 +0000 (UTC) Received: from colepc.redhat.com (ovpn-116-116.phx2.redhat.com [10.3.116.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8022B5C261; Sat, 6 Jan 2018 21:56:19 +0000 (UTC) From: Cole Robinson To: qemu-devel@nongnu.org Date: Sat, 6 Jan 2018 16:56:13 -0500 Message-Id: <00583a19439a026a47fcb4d12cb185130347c636.1515275715.git.crobinso@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Sat, 06 Jan 2018 21:56:20 +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 v2] 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. scripts/make-release | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.14.3 diff --git a/scripts/make-release b/scripts/make-release index 3917df7142..7cbce29475 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 popd -tar cfj ${destination}.tar.bz2 ${destination} +tar --exclude=.git -cjf ${destination}.tar.bz2 ${destination} rm -rf ${destination}