Small fix in build-info script for better platform compatibility.

This commit is contained in:
LoRd_MuldeR 2022-12-13 20:22:57 +01:00
parent 509924c84c
commit 65fa799725
Signed by: mulder
GPG Key ID: 2B5913365F57E03F

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
if [ -n "$1" ]; then CC="$1"; elif [ -z "$CC" ]; then CC="cc"; fi if [ -n "$1" ]; then CC="$1"; elif [ -z "$CC" ]; then CC="cc"; fi
echo "Built : `date -u +"%Y-%m-%d %H:%M:%S"`" echo "Built : `date -u +'%Y-%m-%d %H:%M:%S'`"
echo "Platform : `uname -s -r -v -m`" echo "Platform : `uname -s -r -v -m`"
echo "Target : `$CC -dumpmachine`" echo "Target : `$CC -dumpmachine`"
echo "Compiler : `$CC -v 2>&1 | grep -iE '\b(gcc|clang)\s+version\b' | head -n 1`" echo "Compiler : `$CC -v 2>&1 | grep -i '\(gcc\|clang\)[[:space:]]\{1,\}version' | head -n 1`"