[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] Buildsystem fix distclean error in pixman
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] Buildsystem fix distclean error in pixman |
Date: |
Fri, 16 Nov 2012 11:23:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 |
Il 16/11/2012 10:27, Peter Maydell ha scritto:
> On 16 November 2012 05:05, Wenchao Xia <address@hidden> wrote:
>> Currently if pixman have no config.log inside, make file still
>> try to clean it resulting error. This patch fix it.
>>
>> - test -f pixman/config.log && make -C pixman distclean
>> + @if test -f pixman/config.log; \
>> + then \
>> + make -C pixman distclean;\
>> + fi
>
> These two bits of shellscript both do the same thing, don't they?
No, when "test" fails the && exits with a failure. The "if" exits with
a success (not the most portable thing ever, but we assume a decent
shell elsewhere).
I think this patch is ok, but why the "@"?
[Qemu-devel] [PATCH 2/2] Buildsystem clean tests directory clearly, Wenchao Xia, 2012/11/16