Re: [PATCH v2 3/6] kbuild: mkcompile_h: trivial cleanups

From: AmÃrico Wang
Date: Wed Sep 16 2009 - 22:14:13 EST


On Thu, Sep 17, 2009 at 5:38 AM, Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
> UTS_TRUNCATTE is simpler this way, and now editors idetify this as a
> shell script.
>
> Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx>

Looks good.

Acked-by: WANG Cong <xiyou.wangcong@xxxxxxxxx>

> ---
> Âscripts/mkcompile_h | Â Â4 +++-
> Â1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
> index f060763..bce3d0f 100755
> --- a/scripts/mkcompile_h
> +++ b/scripts/mkcompile_h
> @@ -1,3 +1,5 @@
> +#!/bin/sh
> +
> ÂTARGET=$1
> ÂARCH=$2
> ÂSMP=$3
> @@ -50,7 +52,7 @@ UTS_VERSION="$UTS_VERSION $CONFIG_FLAGS $TIMESTAMP"
> Â# Truncate to maximum length
>
> ÂUTS_LEN=64
> -UTS_TRUNCATE="sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/"
> +UTS_TRUNCATE="cut -b -$UTS_LEN"
>
> Â# Generate a temporary compile.h
>
> --
> 1.6.5.rc1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
> Please read the FAQ at Âhttp://www.tux.org/lkml/
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/