projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c3049c
)
kbuild: mkcompile_h: trivial cleanups
author
Felipe Contreras
<felipe.contreras@gmail.com>
Wed, 16 Sep 2009 21:38:40 +0000
(
00:38
+0300)
committer
Sam Ravnborg
<sam@ravnborg.org>
Sun, 11 Oct 2009 21:21:25 +0000
(23:21 +0200)
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>
scripts/mkcompile_h
patch
|
blob
|
history
diff --git
a/scripts/mkcompile_h
b/scripts/mkcompile_h
index f060763c0c6a0c4304c2da5e473e7d0b59c58da5..bce3d0fe6fbd8d3f51918098b16c2da45456987e 100755
(executable)
--- 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