Scripts: fix extra new line problems while printing toolchain
This commit is contained in:
parent
37d1c0a49c
commit
e75891e660
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
|
|||
|
||||
LD_VERSION=$($LD -v | head -n1 | sed 's/(compatible with [^)]*)//' \
|
||||
| sed 's/[[:space:]]*$//')
|
||||
printf '#define LINUX_COMPILER "%s"\n' "$CC_VERSION, $LD_VERSION"
|
||||
printf '#define LINUX_COMPILER "%s"' "$CC_VERSION, $LD_VERSION" | tr '\n' ' '
|
||||
printf '\n'
|
||||
) > .tmpcompile
|
||||
|
||||
# Only replace the real compile.h if the new one is different,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue