From patchwork Fri Jun 11 20:58:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 55370 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C7C5DB7D85 for ; Sat, 12 Jun 2010 07:02:23 +1000 (EST) Received: from localhost ([127.0.0.1]:49323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONBMq-0004pl-3e for incoming@patchwork.ozlabs.org; Fri, 11 Jun 2010 17:02:20 -0400 Received: from [140.186.70.92] (port=35889 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONBJE-0001zD-6T for qemu-devel@nongnu.org; Fri, 11 Jun 2010 16:58:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONBJB-0005nT-Dv for qemu-devel@nongnu.org; Fri, 11 Jun 2010 16:58:34 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:41330) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONBJB-0005nG-86 for qemu-devel@nongnu.org; Fri, 11 Jun 2010 16:58:33 -0400 Received: from smtp05.web.de ( [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id 04C08165FC389; Fri, 11 Jun 2010 22:58:30 +0200 (CEST) Received: from [88.66.126.39] (helo=[192.168.1.10]) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #4) id 1ONBJ7-00059r-00; Fri, 11 Jun 2010 22:58:29 +0200 Message-ID: <4C12A375.6050201@web.de> Date: Fri, 11 Jun 2010 22:58:29 +0200 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Aurelien Jarno X-Enigmail-Version: 0.95.7 X-Sender: jan.kiszka@web.de X-Provags-ID: V01U2FsdGVkX1/4OdiLy1RK9aCEhqQ/OgJGLvtUNAXS0oWELos7 DUndMWbTzvOhyeUJJokNVaNzY5G50o0DXIB6Uv+sUXM30dZYyl 374zsSkmw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 Cc: Paolo Bonzini , qemu-devel Subject: [Qemu-devel] [PATCH] configure: Fix evaluation of config-host.mak in create_config X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Jan Kiszka Only match on true dir variable assignments, avoid generating garbage due to the "# Configured with: ..." line which may contain "*dir=" as well. Signed-off-by: Jan Kiszka --- create_config | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/create_config b/create_config index 23c0cd5..0098e68 100755 --- a/create_config +++ b/create_config @@ -13,7 +13,7 @@ case $line in pkgversion=${line#*=} echo "#define QEMU_PKGVERSION \"$pkgversion\"" ;; - prefix=* | *dir=*) # directory configuration + prefix=* | [a-z]*dir=*) # directory configuration name=${line%=*} value=${line#*=} define_name=`echo $name | tr '[:lower:]' '[:upper:]'`