From patchwork Fri Feb 1 12:00:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 217441 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8A4D22C0095 for ; Fri, 1 Feb 2013 23:01:49 +1100 (EST) Received: from localhost ([::1]:40042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1FJT-0003gP-LS for incoming@patchwork.ozlabs.org; Fri, 01 Feb 2013 07:01:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1FIc-0001hz-WD for qemu-devel@nongnu.org; Fri, 01 Feb 2013 07:00:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1FIY-0008Vs-Bm for qemu-devel@nongnu.org; Fri, 01 Feb 2013 07:00:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:14164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1FIX-0008VO-PT for qemu-devel@nongnu.org; Fri, 01 Feb 2013 07:00:49 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r11C0mha024908 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 1 Feb 2013 07:00:49 -0500 Received: from rincewind.home.kraxel.org (ovpn-116-85.ams2.redhat.com [10.36.116.85]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r11C0jpt031668; Fri, 1 Feb 2013 07:00:48 -0500 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id D4CF640CE1; Fri, 1 Feb 2013 13:00:44 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Fri, 1 Feb 2013 13:00:42 +0100 Message-Id: <1359720044-8140-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1359720044-8140-1-git-send-email-kraxel@redhat.com> References: <1359720044-8140-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 2/4] fix scripts/make_device_config.sh X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Make it handle multiple include statements in a file. Signed-off-by: Gerd Hoffmann --- scripts/make_device_config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/make_device_config.sh b/scripts/make_device_config.sh index 0778fe2..81fe942 100644 --- a/scripts/make_device_config.sh +++ b/scripts/make_device_config.sh @@ -18,7 +18,7 @@ process_includes () { f=$src while [ -n "$f" ] ; do - f=`tr -d '\r' < $f | awk '/^include / {printf "'$src_dir'/%s", $2}'` + f=`cat $f | tr -d '\r' | awk '/^include / {printf "'$src_dir'/%s ", $2}'` [ $? = 0 ] || exit 1 all_includes="$all_includes $f" done