]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/conf/newvers.sh
Fix newvers.sh on macOS 10.15
authorarichardson <arichardson@FreeBSD.org>
Mon, 23 Mar 2020 17:51:44 +0000 (17:51 +0000)
committerarichardson <arichardson@FreeBSD.org>
Mon, 23 Mar 2020 17:51:44 +0000 (17:51 +0000)
commitac3abcbb8e780df94460ebb46e8daa34515c214f
tree0472acbbb56e04a2e69e640b8db7089dc82f358c
parentaae10c0b9d4f22186df8290869b7cbd93602feb6
Fix newvers.sh on macOS 10.15

It appears that the macOS /bin/sh echo now defaults to -e and therefore the
`#define VERSTR` included newline characters instead of \n. This caused compiler
errors due to unterminated strings. Fix by using printf instead of echo.
A less fragile solution might be to bootstrap the in-tree /bin/sh but that
requires more changes.

Reviewed By: brooks
Differential Revision: https://reviews.freebsd.org/D24136
sys/conf/newvers.sh