qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] scripts/make-release: More .git removal
@ 2017-12-18 22:33 Cole Robinson
  2017-12-19  7:52 ` Thomas Huth
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Cole Robinson @ 2017-12-18 22:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: mdroth, peter.maydell, Cole Robinson

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 <crobinso@redhat.com>
---
 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.
-- 
2.14.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] scripts/make-release: More .git removal
  2017-12-18 22:33 [Qemu-devel] [PATCH] scripts/make-release: More .git removal Cole Robinson
@ 2017-12-19  7:52 ` Thomas Huth
  2017-12-19 10:59 ` Daniel P. Berrange
  2017-12-19 13:13 ` Markus Armbruster
  2 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2017-12-19  7:52 UTC (permalink / raw)
  To: Cole Robinson, qemu-devel
  Cc: peter.maydell, mdroth, Gerd Hoffmann, Daniel P. Berrange,
	QEMU Trivial

On 18.12.2017 23:33, Cole Robinson wrote:
> 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 <crobinso@redhat.com>
> ---
>  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 '{}' \;

Good idea! That also fixes the dead pixman/.git entry :-)

Reviewed-by: Thomas Huth <thuth@redhat.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] scripts/make-release: More .git removal
  2017-12-18 22:33 [Qemu-devel] [PATCH] scripts/make-release: More .git removal Cole Robinson
  2017-12-19  7:52 ` Thomas Huth
@ 2017-12-19 10:59 ` Daniel P. Berrange
  2017-12-19 13:13 ` Markus Armbruster
  2 siblings, 0 replies; 5+ messages in thread
From: Daniel P. Berrange @ 2017-12-19 10:59 UTC (permalink / raw)
  To: Cole Robinson; +Cc: qemu-devel, peter.maydell, mdroth

On Mon, Dec 18, 2017 at 05:33:54PM -0500, Cole Robinson wrote:
> 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 <crobinso@redhat.com>
> ---
>  scripts/make-release | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>


> 
> 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.
> -- 
> 2.14.3
> 
> 

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] scripts/make-release: More .git removal
  2017-12-18 22:33 [Qemu-devel] [PATCH] scripts/make-release: More .git removal Cole Robinson
  2017-12-19  7:52 ` Thomas Huth
  2017-12-19 10:59 ` Daniel P. Berrange
@ 2017-12-19 13:13 ` Markus Armbruster
  2018-01-06 21:56   ` Cole Robinson
  2 siblings, 1 reply; 5+ messages in thread
From: Markus Armbruster @ 2017-12-19 13:13 UTC (permalink / raw)
  To: Cole Robinson; +Cc: qemu-devel, peter.maydell, mdroth

Cole Robinson <crobinso@redhat.com> 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 <crobinso@redhat.com>
> ---
>  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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] scripts/make-release: More .git removal
  2017-12-19 13:13 ` Markus Armbruster
@ 2018-01-06 21:56   ` Cole Robinson
  0 siblings, 0 replies; 5+ messages in thread
From: Cole Robinson @ 2018-01-06 21:56 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: peter.maydell, qemu-devel, mdroth

On 12/19/2017 08:13 AM, Markus Armbruster wrote:
> Cole Robinson <crobinso@redhat.com> 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 <crobinso@redhat.com>
>> ---
>>  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.
> 

Good idea, I sent a v2 using that instead

Thanks,
Cole

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-06 21:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-18 22:33 [Qemu-devel] [PATCH] scripts/make-release: More .git removal Cole Robinson
2017-12-19  7:52 ` Thomas Huth
2017-12-19 10:59 ` Daniel P. Berrange
2017-12-19 13:13 ` Markus Armbruster
2018-01-06 21:56   ` Cole Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).