[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] configure: Fix evaluation of config-host.mak in
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH] configure: Fix evaluation of config-host.mak in create_config |
Date: |
Sat, 12 Jun 2010 13:55:57 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, Jun 11, 2010 at 10:58:29PM +0200, Jan Kiszka wrote:
> From: Jan Kiszka <address@hidden>
>
> Only match on true dir variable assignments, avoid generating garbage
> due to the "# Configured with: ..." line which may contain "*dir=" as
> well.
Wouldn't it be better to skip all lines starting with '#', as this
problem might happen again after some more changes?
Or maybe we should do both.
> Signed-off-by: Jan Kiszka <address@hidden>
> ---
> 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:]'`
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net