From: Jonathan Liu Date: Mon, 12 Jun 2017 08:23:17 +0000 (+1000) Subject: scripts/mkcompile_h: Remove trailing spaces from compiler version X-Git-Tag: v4.13-rc1~107^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=adcc3f7cee29eb831f79f4ac7ba6a0fbce7ac936;p=thirdparty%2Fkernel%2Flinux.git scripts/mkcompile_h: Remove trailing spaces from compiler version Improves the output of "cat /proc/version" by getting rid of the trailing space at the end of the compiler version when the kernel is compiled using GCC. Signed-off-by: Jonathan Liu Signed-off-by: Masahiro Yamada --- diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index 6fdc97ef6023d..fd8fdb91581dd 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h @@ -76,7 +76,7 @@ UTS_TRUNCATE="cut -b -$UTS_LEN" echo \#define LINUX_COMPILE_BY \"`echo $LINUX_COMPILE_BY | $UTS_TRUNCATE`\" echo \#define LINUX_COMPILE_HOST \"`echo $LINUX_COMPILE_HOST | $UTS_TRUNCATE`\" - echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | grep ' version '`\" + echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | grep ' version ' | sed 's/[[:space:]]*$//'`\" ) > .tmpcompile # Only replace the real compile.h if the new one is different,