From: Juan Quintela <quintela@redhat.com>
To: Stefan Weil <weil@mail.berlios.de>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 1/5] substitute all uses of which by type
Date: Wed, 20 Jan 2010 19:52:30 +0100 [thread overview]
Message-ID: <m3bpgo6235.fsf@neno.neno> (raw)
In-Reply-To: <4B574E13.2010102@mail.berlios.de> (Stefan Weil's message of "Wed, 20 Jan 2010 19:40:19 +0100")
Stefan Weil <weil@mail.berlios.de> wrote:
> Juan Quintela schrieb:
>> Except in one case, we are only interested in knowing if a command
>> exist, not is path. Just create prog_exists() function that does this
>> check.
>>
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>
> See comments below. The changes proposed are a suggestion, no real need.
>
> Regards,
> Stefan
>
>> ---
>> configure | 25 ++++++++++++++-----------
>> 1 files changed, 14 insertions(+), 11 deletions(-)
>>
>> diff --git a/configure b/configure
>> index 5631bbb..71edaf5 100755
>> --- a/configure
>> +++ b/configure
>> @@ -27,6 +27,11 @@ compile_prog() {
>> $cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags
>> > /dev/null 2> /dev/null
>> }
>>
>> +prog_exist() {
>> + prog="$1"
>> + type $prog > /dev/null 2> /dev/null
>
> I personally prefer
> + type $prog >/dev/null 2>&1
> because it is shorter (no whitespace after >, no duplicate /dev/null).
> Currently, all variants to write this pattern are used.
> Maybe we can reduce this.
Agreed. For next series if there is not needed a rebase.
Later, Juan.
next prev parent reply other threads:[~2010-01-20 18:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-20 17:27 [Qemu-devel] [PATCH 0/5] Remove which use Juan Quintela
2010-01-20 17:27 ` [Qemu-devel] [PATCH 1/5] substitute all uses of which by type Juan Quintela
2010-01-20 18:40 ` Stefan Weil
2010-01-20 18:52 ` Juan Quintela [this message]
2010-01-20 17:27 ` [Qemu-devel] [PATCH 2/5] Check for sdl-config before calling it Juan Quintela
2010-01-20 17:27 ` [Qemu-devel] [PATCH 3/5] Add -static earlier to LDFLAGS for compile_prog() Juan Quintela
2010-01-20 17:27 ` [Qemu-devel] [PATCH 4/5] Remove check for grep Juan Quintela
2010-01-20 17:27 ` [Qemu-devel] [PATCH 5/5] Fix missing symbols in .rel/.rela.plt sections Juan Quintela
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=m3bpgo6235.fsf@neno.neno \
--to=quintela@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=weil@mail.berlios.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.