diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2009-09-17 00:38:40 +0300 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-10-11 23:21:25 +0200 |
commit | 17c5ca98833dc3d8f8dd4e85487da238c50cd8c9 (patch) | |
tree | b9dfa2f1b9776df2fbd496a3be7cb4edb0d83fd1 /scripts | |
parent | 9c3049c02c6142e166c9472237f1f60d86153682 (diff) | |
download | op-kernel-dev-17c5ca98833dc3d8f8dd4e85487da238c50cd8c9.zip op-kernel-dev-17c5ca98833dc3d8f8dd4e85487da238c50cd8c9.tar.gz |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | 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 |