[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/4] fix scripts/make_device_config.sh
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH 2/4] fix scripts/make_device_config.sh |
Date: |
Fri, 01 Feb 2013 14:38:09 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 |
Am 01.02.2013 13:00, schrieb Gerd Hoffmann:
> Make it handle multiple include statements in a file.
>
> Signed-off-by: Gerd Hoffmann <address@hidden>
> ---
> 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
The actual fix is appending a space? Or how does cat make a difference?
Cheers,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg