Scripts: fix extra new line problems while printing toolchain

This commit is contained in:
xxmustafacooTR 2023-10-26 17:52:25 +03:00
parent 37d1c0a49c
commit e75891e660

View file

@ -85,7 +85,8 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
LD_VERSION=$($LD -v | head -n1 | sed 's/(compatible with [^)]*)//' \ LD_VERSION=$($LD -v | head -n1 | sed 's/(compatible with [^)]*)//' \
| sed 's/[[:space:]]*$//') | 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 ) > .tmpcompile
# Only replace the real compile.h if the new one is different, # Only replace the real compile.h if the new one is different,