From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Gerd Hoffmann 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> Subject: [Qemu-devel] [PATCH 2/4] fix scripts/make_device_config.sh List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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 -- 1.7.9.7