Convert amd newvers to using newvers.sh -v.

Rather than the tedious and error-prone grep of sys/conf/newvers.sh,
use the new -v arg to dig out the data that's desired.

Differential Revision: https://reviews.freebsd.org/D19849
This commit is contained in:
Warner Losh 2019-05-23 17:18:56 +00:00
parent 9afea54ac5
commit 5f8363315e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348176

View file

@ -5,7 +5,7 @@
#
if [ -e $1 ]; then
eval `LC_ALL=C egrep '^[A-Z]+=' $1 | grep -v COPYRIGHT`
eval $(sh $1 -v)
OS=`echo ${TYPE} | LC_ALL=C tr 'A-Z' 'a-z'`
echo '/* Define name and version of host machine (eg. solaris2.5.1) */'
echo "#define HOST_OS \"${OS}${REVISION}\""