From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZJXY-0004BX-21 for qemu-devel@nongnu.org; Fri, 16 Nov 2012 05:52:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZJXU-000353-W9 for qemu-devel@nongnu.org; Fri, 16 Nov 2012 05:52:51 -0500 Received: from e28smtp06.in.ibm.com ([122.248.162.6]:43642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZJXU-00034L-C4 for qemu-devel@nongnu.org; Fri, 16 Nov 2012 05:52:48 -0500 Received: from /spool/local by e28smtp06.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 16 Nov 2012 16:22:44 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qAGAqgsD12386470 for ; Fri, 16 Nov 2012 16:22:42 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qAGGKk7h005528 for ; Sat, 17 Nov 2012 03:20:47 +1100 Message-ID: <50A61AC6.4050302@linux.vnet.ibm.com> Date: Fri, 16 Nov 2012 18:51:50 +0800 From: Wenchao Xia MIME-Version: 1.0 References: <1353042317-13688-1-git-send-email-xiawenc@linux.vnet.ibm.com> <1353042317-13688-2-git-send-email-xiawenc@linux.vnet.ibm.com> <50A61404.7060903@redhat.com> In-Reply-To: <50A61404.7060903@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 1/2] Buildsystem fix distclean error in pixman List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, Peter Maydell , aliguori@us.ibm.com, stefanha@gmail.com, qemu-devel@nongnu.org, blauwirbel@gmail.com, Gerd Hoffmann 于 2012-11-16 18:23, Paolo Bonzini 写道: > Il 16/11/2012 10:27, Peter Maydell ha scritto: >> On 16 November 2012 05:05, Wenchao Xia 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 "@"? > print out seems ugly :|, maybe I should cancel @ and adjust the format. -- Best Regards Wenchao Xia