From: "Daniel P. Berrange" <berrange@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
patches@linaro.org, qemu-trivial@nongnu.org,
Stefan Weil <sw@weilnetz.de>,
qemu-devel@nongnu.org, Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target
Date: Tue, 31 Jul 2012 15:38:34 +0100 [thread overview]
Message-ID: <20120731143834.GJ2475@redhat.com> (raw)
In-Reply-To: <87k3xk577l.fsf@blackfin.pond.sub.org>
On Tue, Jul 31, 2012 at 04:35:42PM +0200, Markus Armbruster wrote:
> Peter Maydell <peter.maydell@linaro.org> writes:
>
> > On 31 July 2012 15:19, Markus Armbruster <armbru@redhat.com> wrote:
> >> Peter Maydell <peter.maydell@linaro.org> writes:
> >>> + find . -name '*.[od]' | xargs rm -f
> >>> + rm -f *.a *.lo $(TOOLS) $(HELPERS-y) qemu-ga TAGS cscope.* *.pod
> >>> *~ */*~
> >>
> >> Shit happens if you somehow manage to create a "mean" file name in the
> >> build tree. Sure you don't want to -print0 | xargs -0?
> >
> > -print0 isn't POSIX, so I wasn't sure it would be present on all
> > our platforms. (It's probably fairly safe, though...)
>
> Another option is "-exec rm {} +".
Isn't using 'find' somewhat overkill here really. QEMU only creates
.o and .d files in 2 levels of directory, so sure we can just avoid
find entirely
rm -f *.[od] */*.[od]
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
WARNING: multiple messages have this Message-ID (diff)
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
patches@linaro.org, qemu-trivial@nongnu.org,
Stefan Weil <sw@weilnetz.de>,
qemu-devel@nongnu.org, Jan Kiszka <jan.kiszka@siemens.com>,
Stefan Hajnoczi <stefanha@gmail.com>
Subject: Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target
Date: Tue, 31 Jul 2012 15:38:34 +0100 [thread overview]
Message-ID: <20120731143834.GJ2475@redhat.com> (raw)
In-Reply-To: <87k3xk577l.fsf@blackfin.pond.sub.org>
On Tue, Jul 31, 2012 at 04:35:42PM +0200, Markus Armbruster wrote:
> Peter Maydell <peter.maydell@linaro.org> writes:
>
> > On 31 July 2012 15:19, Markus Armbruster <armbru@redhat.com> wrote:
> >> Peter Maydell <peter.maydell@linaro.org> writes:
> >>> + find . -name '*.[od]' | xargs rm -f
> >>> + rm -f *.a *.lo $(TOOLS) $(HELPERS-y) qemu-ga TAGS cscope.* *.pod
> >>> *~ */*~
> >>
> >> Shit happens if you somehow manage to create a "mean" file name in the
> >> build tree. Sure you don't want to -print0 | xargs -0?
> >
> > -print0 isn't POSIX, so I wasn't sure it would be present on all
> > our platforms. (It's probably fairly safe, though...)
>
> Another option is "-exec rm {} +".
Isn't using 'find' somewhat overkill here really. QEMU only creates
.o and .d files in 2 levels of directory, so sure we can just avoid
find entirely
rm -f *.[od] */*.[od]
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
next prev parent reply other threads:[~2012-07-31 14:39 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-31 13:01 [Qemu-trivial] [PATCH] Makefile: Avoid explicit list of directories in clean target Peter Maydell
2012-07-31 13:01 ` [Qemu-devel] " Peter Maydell
2012-07-31 13:25 ` [Qemu-trivial] " Stefan Hajnoczi
2012-07-31 13:25 ` [Qemu-devel] " Stefan Hajnoczi
2012-07-31 14:19 ` [Qemu-trivial] " Markus Armbruster
2012-07-31 14:19 ` Markus Armbruster
2012-07-31 14:21 ` [Qemu-trivial] " Peter Maydell
2012-07-31 14:21 ` Peter Maydell
2012-07-31 14:35 ` [Qemu-trivial] " Markus Armbruster
2012-07-31 14:35 ` Markus Armbruster
2012-07-31 14:38 ` Daniel P. Berrange [this message]
2012-07-31 14:38 ` Daniel P. Berrange
2012-07-31 15:00 ` [Qemu-trivial] " Peter Maydell
2012-07-31 15:00 ` Peter Maydell
2012-07-31 15:49 ` [Qemu-trivial] " Stefan Weil
2012-07-31 15:49 ` Stefan Weil
2012-07-31 15:51 ` [Qemu-trivial] " Peter Maydell
2012-07-31 15:51 ` Peter Maydell
2012-07-31 16:20 ` [Qemu-trivial] " Stefan Weil
2012-07-31 16:20 ` Stefan Weil
2012-07-31 17:02 ` [Qemu-trivial] " Blue Swirl
2012-07-31 17:02 ` Blue Swirl
2012-07-31 14:24 ` [Qemu-trivial] " Eric Blake
2012-07-31 14:24 ` Eric Blake
2012-08-01 10:28 ` [Qemu-trivial] " Stefan Hajnoczi
2012-08-01 10:28 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120731143834.GJ2475@redhat.com \
--to=berrange@redhat.com \
--cc=armbru@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=patches@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.