Skip to content

Commit

Permalink
kbuild: mkcompile_h: trivial cleanups
Browse files Browse the repository at this point in the history
UTS_TRUNCATTE is simpler this way, and now editors idetify this as a
shell script.

Signed-off-by: Felipe Contreras <[email protected]>
Acked-by: WANG Cong <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
felipec authored and sravnborg committed Oct 11, 2009
1 parent 9c3049c commit 17c5ca9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/mkcompile_h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

TARGET=$1
ARCH=$2
SMP=$3
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 17c5ca9

Please sign in to comment.