mirror of
https://git.busybox.net/busybox.git
synced 2024-11-27 23:53:29 +08:00
gcc-version.sh: fix for "invalid number" message during Android NDK builds
A CR in the gcc output would cause the following to show throughout build: : invalid numberbox-1.32.1/scripts/gcc-version.sh: line 12: printf: 9 Signed-off-by: Chris Renshaw <osm0sis@outlook.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
20b224046c
commit
6c6470b384
@ -7,6 +7,6 @@
|
||||
#
|
||||
|
||||
compiler="$*"
|
||||
|
||||
MAJ_MIN=$(echo __GNUC__ __GNUC_MINOR__ | $compiler -E -xc - | grep . | tail -n 1)
|
||||
# tr -d '\r': fix up msdos-style line endings (Cygwin et al)
|
||||
MAJ_MIN=$(echo __GNUC__ __GNUC_MINOR__ | $compiler -E -xc - | tr -d '\r' | tail -n 1)
|
||||
printf '%02d%02d\n' $MAJ_MIN
|
||||
|
Loading…
Reference in New Issue
Block a user