From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRHiC-0007LN-5C for qemu-devel@nongnu.org; Tue, 19 Dec 2017 08:13:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRHi8-000614-Pw for qemu-devel@nongnu.org; Tue, 19 Dec 2017 08:13:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49632) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eRHi8-0005zV-K9 for qemu-devel@nongnu.org; Tue, 19 Dec 2017 08:13:32 -0500 From: Markus Armbruster References: <458bba0e0865443a3d4e0f8e0dbb5bc712e098b9.1513636434.git.crobinso@redhat.com> Date: Tue, 19 Dec 2017 14:13:27 +0100 In-Reply-To: <458bba0e0865443a3d4e0f8e0dbb5bc712e098b9.1513636434.git.crobinso@redhat.com> (Cole Robinson's message of "Mon, 18 Dec 2017 17:33:54 -0500") Message-ID: <8760927te0.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] scripts/make-release: More .git removal List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cole Robinson Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, mdroth@linux.vnet.ibm.com Cole Robinson writes: > As was last done in 379e21c25, we want to remove .git files for > submodules here, which we aren't presently doing for capstone and > keycodemapdb. > > Rather than a whitelist use 'find' to future proof this > > Signed-off-by: Cole Robinson > --- > scripts/make-release | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/make-release b/scripts/make-release > index 3917df7142..7c7bec577f 100755 > --- a/scripts/make-release > +++ b/scripts/make-release > @@ -19,7 +19,7 @@ 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 > +find . -depth -name .git -exec rm -rf '{}' \; > # 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. Less scary: run tar with --exclude=.git.