lkml.org 
[lkml]   [2009]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/5] kbuild: mkcompile_h: trivial cleanups
    Date
    UTS_TRUNCATTE is simpler this way, and now editors idetify this as a
    shell script.

    Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
    ---
    scripts/mkcompile_h | 4 +++-
    1 files changed, 3 insertions(+), 1 deletions(-)

    diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
    index 2e09f4a..7ab9c52 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


    \
     
     \ /
      Last update: 2009-09-13 21:43    [W:0.037 / U:60.332 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site