kbuild: mkcompile_h: trivial cleanups

UTS_TRUNCATTE is simpler this way, and now editors idetify this as a
shell script.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
Felipe Contreras 2009-09-17 00:38:40 +03:00 committed by Sam Ravnborg
parent 9c3049c02c
commit 17c5ca9883
1 changed files with 3 additions and 1 deletions

View File

@ -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